ESP8266-Websocket
ESP8266-Websocket copied to clipboard
hangs on waiting
Sometimes , due to I think unreliable connection socket seems to hang on this loop:
I got firstly an error in parsing object , then everything hangs on :
while ((socket_client->connected() && !socket_client->available())) {
delay(100);
Serial.println("Waiting..." );
}
got an infinite Waiting loop. This happens randomly but when it hangs it's sketch end as it never go out from loop. it would not be better to have a timeout on this?