Description
Basic Infos
I'm not a python developer and also new to all this here so please have mercy.
While migrating my project from 2.3.0 to 2.4.0 I experienced the OTA to behave different.
espota.py is not closed like it was in 2.3.0
Hardware
Hardware: ESP-07
Core Version: 2.4.0
Description
ArduinoOTA
espota.py is waiting for an "OK" from ArduinoOTA library after upload was successful but only receives "K", thus not closing connection.
The "O" seems to get lost somewhere.
With 2.3.0 version of espota.py this was not an issue since espota.py closed anyway.
#4053 introduced this new handling
Hack
By trial and error I just added a leading character to the char array ArduinoOTA returns and it was working:
Fix?
Next try was then to provide a String instead of char*
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 1 MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: OTA
Reset Method: ck
Sketch
basicOTA.ino
Debug
espota.py 2.3.0 - prints error "K" but flashed successful
espota 2.4.0 - hangs there forever but sketch is updated and ESP restarts fine (I canclled execution some minutes after)