can you change your code with arduino+esp8266?
or can you explain with serial commands ?
Explore... Chat... Share...
#include "./functions.h"
#include <Streaming.h> // http://arduiniana.org/libraries/streaming/
const char* ssid = "**SSID*"; // ERASE prior to publishing
const char* password = "wifipasswd"; // "" ditto
int LED = 2; // NodeMCU by LoLin
void setup() {
pinMode(LED, OUTPUT);
Serial.begin(19200); delay(100);
Serial << (F("... Attempting to log into router... \r\n"));
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) delay(500);
WiFi.mode(WIFI_STA);
Serial << (F("\n\nBOOTING ESP8266 ..."));
Serial << (F("Connected to ")) << ssid << endl;
Serial << (F("Station IP address: ")) << WiFi.localIP() << endl;
server.on("/", handleWebsite);
server.on("/xml", handleXML);
server.on("/setESPval", handleESPval);
server.begin();
}
void loop() {
server.handleClient();
if (millis() > wait000) {
buildXML();
wait000 = millis() + 1000UL;
}
if (millis() > wait001) { // slider0 controls LED blink rate
digitalWrite(LED, !digitalRead(LED));
wait001 = millis() + ESPval[0];
}
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]