1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

Let the socket to properly close

python was keeping the connection open and sending duplicate FINs until
the ESP came back online, because the ESP was resetting without giving
the network a chance to answer and close
This commit is contained in:
Me No Dev
2015-11-09 02:38:20 +02:00
parent d3628f5a01
commit 950e9c9522

View File

@ -144,6 +144,8 @@ void ArduinoOTAClass::_runUpdate(){
if(Update.end()){
client.print("OK");
client.stop();
delay(10);
#if OTA_DEBUG
Serial.printf("Update Success\nRebooting...\n");
#endif