Chat freely about anything...

User avatar
By barakzai786
#17232 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
Code: Select allif (timer0 > interval) {
    timer0 -= interval; //reset the timer
    esp8266.println("AT+CWJAP?");
    wait_for_esp_response(1000); 
    if(esp8266.find("ERROR")){
     
    setupWiFi();
    }
   
   
   
  }