-->
Page 1 of 1

ESP8266 automatic check connectivity every 1min

PostPosted: Tue May 12, 2015 5:18 am
by barakzai786
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();
    }
   
   
   
  }