Hi about OTA procedure:
I use the content of BasicOTA.ino in my project and flashed my NodeMCU, serial terminal shows :
M117 Connecting...
M117 192.168.0.120
OTA server at: ESP8266-OTA-22e89:8266
so server look ready
I use the tool python ota_server.py to do OTA to flash a new version of my project
C:\Users\user\Desktop\ld5110>python ota_server.py 192.168.0.120 esp8266.cpp.bin
so terminal display this:
starting up on 0.0.0.0 port 48266
upload size: 437120
sending invitation
waiting for a connection
connection from ('192.168.0.120', 4097)
opening file esp8266.cpp.bin
sending 4096
sending 4096
....
sending 4096
sending 2944
done!
and serial terminal display this:
Update Start: ip:192.168.0.101, port:48266, size:437120
ERROR[0]: No Error
looks fine but atually ESP Fw is not modified even after a restart
do I missed something ?
esptool-0.4.5-linux32.tar.gz: 1103 downloads
esptool-0.4.5-linux64.tar.gz: 5845 downloads
esptool-0.4.5-osx.tar.gz: 5592 downloads
esptool-0.4.5-win32.zip: 27600 downloads
//#define DEBUG_UPDATER Serial
the web update - works without problem:
Booting Sketch...
HTTPUpdateServer ready! Open http://esp8266-webupdate.local/update in your browser
Staged: address:0x00059000, size:0x00054B30
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
@cp:0
ld
Booting
OTA server at: ESP8266-OTA-22e89:8266
Ready
Second version
Second version
finally:
time.sleep(2)
connection.close()