ESP8266 automatic check connectivity every 1min
Posted: Tue May 12, 2015 5:18 am
Hi
i am try to write the code for esp8266 to check connectivity every min and to re connect if it was not connected.i send the commend AT+CWJAP? to check connectivity.
the problem is when i look for the word "ERROR" is dose not pick up.
eg of the code
i am try to write the code for esp8266 to check connectivity every min and to re connect if it was not connected.i send the commend AT+CWJAP? to check connectivity.
the problem is when i look for the word "ERROR" is dose not pick up.
eg of the code
Code: Select all
if (timer0 > interval) {
timer0 -= interval; //reset the timer
esp8266.println("AT+CWJAP?");
wait_for_esp_response(1000);
if(esp8266.find("ERROR")){
setupWiFi();
}
}