This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
const int led = 16; //pin D0 on NodeMCU board | |
const char* ssid = "wifiname"; | |
const char* password = "wifipassword"; //wifipass | |
const char* host = "mywebsite.com"; //without https and www | |
const int httpsPort = 443; | |
const char* fingerprint = "13 9f 87 1d b1 85 be e6 bd 73 c1 8d 04 63 58 99 f0 32 43 92"; // SHA1 fingerprint HTTPS of webserver | |
void setup() { | |
Serial.begin(115200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Ethernet.h> | |
const int svetlo1 = 3; | |
const int svetlo2 = 5; | |
const int svetlo3 = 6; | |
const int zasuvka1 = 7; | |
const int zasuvka2 = 8; | |
const int zasuvka3 = 9; | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //fyzicka adresa MAC | |
char serverName[] = "www.arduino.php5.sk"; // webserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Sketch edited by: Martin Chlebovec | |
//My website: https://arduino.php5.sk | |
//Donate me: https://www.paypal.me/Chlebovec | |
//You can use it for eduroam or for any other RADIUS network | |
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
String line; //variable for response | |
const char* ssid = "eduroam"; // Eduroam SSID | |
const char* host = "arduino.php5.sk"; //external server domain | |
#define EAP_IDENTITY "login@university.com" //identity@youruniversity.domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://arduino.php5.sk | |
//Autor: Martin Chlebovec (martinius96) | |
#include <SPI.h> | |
#include <Ethernet.h> | |
int led = 6; | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //MAC | |
char serverName[] = "www.arduino.php5.sk"; // webserver | |
IPAddress ip(192, 168, 2, 40); | |
EthernetClient client; | |
String readString; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://arduino.php5.sk | |
//Autor: Martin Chlebovec (martinius96) | |
#include <SPI.h> | |
#include <Ethernet2.h> | |
int led = 6; | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //MAC | |
char serverName[] = "www.arduino.php5.sk"; // webserver | |
IPAddress ip(192, 168, 2, 40); | |
EthernetClient client; | |
String readString; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: martinius96 | |
// Support: https://www.paypal.me/Chlebovec | |
// Personal web: https://arduino.php5.sk | |
// Email: martinius96@gmail.com | |
#define RX 3 | |
#define TX 4 | |
#define pinLED 0 | |
#include <SoftwareSerial.h> | |
SoftwareSerial bluetooth(TX, RX); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DHT.h" | |
#define DHTPIN 2 // what digital pin we're connected to | |
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 | |
DHT dht(DHTPIN, DHTTYPE); | |
#include "Adafruit_BMP280.h" //bmp280 kniznica s upravou na 0x76 adresu | |
Adafruit_BMP280 bmp; //inicializacia BMP senzora | |
void setup() { | |
bmp.begin(); //start snimaca BMP | |
dht.begin(); | |
Serial.begin(9600); //SPUSTENIE SERIOVEJ LINKY --UART-- NA CITACIU RYCHLOST 9600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Sketch provided by: T. Vandenryt | |
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
String line; //variable for response | |
const char* ssid = "eduroam"; // Eduroam SSID | |
const char* host = "arduino.php5.sk"; //external server domain | |
#define EAP_IDENTITY "login@university.domain" //identity@youruniversity.domain | |
#define EAP_PASSWORD "password" //your Eduroam password | |
void setup() { | |
byte error = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
String line; //variable for response | |
const char* ssid = "eduroam"; // Eduroam SSID | |
const char* host = "arduino.php5.sk"; //external server domain | |
#define EAP_IDENTITY "login@university.domain" //identity@youruniversity.domain | |
#define EAP_PASSWORD "password" //your Eduroam password | |
void setup() { | |
byte error = 0; | |
Serial.begin(115200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
String line; //variable for response | |
const char* ssid = "eduroam"; // Eduroam SSID | |
const char* host = "arduino.php5.sk"; //external server domain | |
#define EAP_IDENTITY "login@university.domain" //identity@youruniversity.domain | |
#define EAP_PASSWORD "password" //your Eduroam password | |
void setup() { | |
byte error = 0; | |
Serial.begin(115200); |
OlderNewer