Can OTA work when the wifi is operating as an access point?
Posted: Tue Jan 19, 2016 1:12 am
Can OTA work when the esp's wifi is operating as an access point? If so, I cannot seem to get it to work. I can bring up and connect to the AP, but when I attempt to send an OTA update using espota.py, I get the following from the esp's ota debug serial logging:
If I perform the OTA update while the ESP is connected to another AP (that is, the ESP is not operating as an AP), the update works as expected.
Code: Select all
[begin] roundedSize: 0x0003F000 (258048)
[begin] updateEndAddress: 0x00100000 (1048576)
[begin] currentSketchSize: 0x0003F000 (258048)
[begin] _startAddress: 0x000C1000 (790528)
[begin] _currentAddress: 0x000C1000 (790528)
[begin] _size: 0x0003EB40 (256832)
Start
Connect Failed
Error[2]: Connect Failed
premature end: res:0, pos:0/256832
rror[4]: End Failed
ERROR[0]: No Error
If I perform the OTA update while the ESP is connected to another AP (that is, the ESP is not operating as an AP), the update works as expected.