Station.cpp
/**
 * Update Station which will check current WiFi connection. If lost connection
 * then stop all services and attempt to reconnect. (Blocking until new
 * connection is established). Then restart all previously stopped services.
 * Else update the services normally.
 */
Update Station which will check current WiFi connection. If lost connection
then stop all services and attempt to reconnect. (Blocking until new
connection is established). Then restart all previously stopped services.
Else update the services normally.
Update Station which will check current WiFi connection . If lost connection then stop all services and attempt to reconnect . ( Blocking until new connection is established ) . Then restart all previously stopped services . Else update the services normally .
void st_update(void){
  if(WiFi.status() != WL_CONNECTED){
    _stop_services();
    bool success = _connect();
    if(success){
      _start_services();
    }
  }else{
    _update_services();
  }
}
void st_update ( void ) { if ( WiFi . status ( ) != WL_CONNECTED ) { _stop_services ( ) ; bool success = _connect ( ) ; if ( success ) { _start_services ( ) ; } } else { _update_services ( ) ; } }
Update Station which will check current WiFi connection.
Update Station which will check current WiFi connection .