-
ESP_WiFiManager
Discontinued This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
/************************************************************* ... *************************************************************/ /* Comment this out to disable prints and save space */ #define BLYNK_DEBUG #define BLYNK_PRINT Serial #include // this needs to be first, or it all crashes and burns... #include // https://github.com/bblanchon/ArduinoJson #ifdef ESP32 #include #endif //#include #include #include #include #include #include // Private Library #include //Private Library //#include #include int relayPin = 5; //22 int wifiResetPin1 = 16; //39; int wifiResetPin2 = 17; //3; int BlinkerPin = 19; //27; String chipID; int V1Int, V9Int, V15Int, V16Int, V17Int, V18Int, V35Int, V40Int, V41Int, V42Int, V43Int, V52Int; String V7Str; float V9Float, V19Float; int TC1_Freq; int EEPROMInitAddr = 0; int EEPROMOffset = 4; int previousOutputState; int previouslyRemainingTime; int firstPass; int emptyWord = 0; int restartFresh; int restartPeriodms; int pushButtonState; int relayState; int temp, temptrig, tempreset; int iiHeatDuration_h = 0; float aiHeatDuration_h = 0.0; float aiHeatDuration_h_Manual = 0.0; int iiHeatDuration_min = 0; int diHMITrigger, diWEATHERTrigger, diHMIForceOff, diWEATHERForceOff, ixDuration_ms; int diHMIFlagTrigger = 0; int diHMIFlagForceOff = 0; int diOpMode; #define AUTOMATIC 1 #define MANUAL 2 Relay heater1; Relay resetTimer; Blinker Blinky; int TC1_Period = 1000; // ms // Callback methods prototypes void t1Callback(); Task t1(TC1_Period, TASK_FOREVER, &t1Callback); Scheduler runner; // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[32]; //flag for saving data bool shouldSaveConfig = false; ESP_WiFiManager wifiManager; //callback notifying us of the need to save config void saveConfigCallback() { Serial.println("Should save config"); shouldSaveConfig = true; } String getMacAddress() { uint64_t chipid; // Get MAC address for WiFi station chipid = ESP.getEfuseMac(); unsigned long long0 = (unsigned long)((chipid & 0xFFFFFFFF)); unsigned long long1 = (unsigned long)(((chipid >> 16) & 0xFFFF0000) >> 16); //unsigned long long2 = (unsigned long)((chipid & 0x0000FFFF)); String hex = String(long1, HEX) + String(long0, HEX); // six octets return hex; } void setup() { // Debug console Serial.begin(115200); chipID = getMacAddress(); Serial.println("*#*#*#*#*#*#*"); Serial.println(chipID); //print High 2 bytes Serial.println("*#*#*#*#*#*#*");
Related posts
-
Ask HN: What have you built with ESPHome, ESP8266 or similar hardware
-
My electricity provider’s consumption interface wasn’t flexible enough, so I went for the jugular and started retrieving real-time usage by attaching a photoresistor to my meter’s light that blinks 1000 times per kilowatt-hour.
-
T-Display S3 and Lora E220
-
LoRa E220 and T-Display S3
-
The Nano ESP32