ESP8266-Websocket icon indicating copy to clipboard operation
ESP8266-Websocket copied to clipboard

hangs on waiting

Open giorgio80 opened this issue 5 years ago • 0 comments

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?

giorgio80 avatar May 09 '19 13:05 giorgio80