
I refactored the OTA client. Now you don't have to specify the IP address of the device anymore.
A UDP broadcast will be sent and if the first device reports something back, future packets will only be sent to this IP.
Here is a problem: The device sends nothing back on errors: So the OTA client didn't recognized the device and send the first packed, again and again to 255.255.255.255 UDP broadcast address.
Think it's better to send something back in case of a error. But how to do this?
Existing issued for this: https://github.com/jedie/yaota8266/issues/4
Another problem: The device prints the error: "Invalid digest size in signature". This happens on first packet. So the update stuck in a "first packed" loop. I have no idea what's the real problem is.
Existing issued for this: https://github.com/jedie/yaota8266/issues/3
Some background information:
I already merged all needed open pull requests from https://github.com/pfalcon/yaota8266/pulls a few are needed bugfixes without it not work.
I created a own fork here: https://github.com/jedie/yaota8266 because Paul Sokolovsky seems to have no interests to bring this project a step further, see: https://github.com/pfalcon/yaota8266/pull/27