Here's my code
void loop() {
if (analogRead(A0) > 500)
{
statuss = true ;
}
if (statuss)
{
digitalWrite(D7, HIGH);
if (millis() - lasttime > 500)
{
digitalWrite(D8, etat);
digitalWrite(D6, etat);
etat = !etat;
lasttime = millis();
}
}
server.handleClient();
}
When I use only server.handleClient
everything works fine but when I add any type of code to the loop()
function the server goes down and I can't see the ESP8266 access point.
any type of code
? .... also, you have not asked a question.when i use only server.handleClient
.... your code has other commands ... your statement does not make sense