-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements for Arduino code #40
Comments
(F)OTA is requested in #27, by using a specific MQTT message with a URL from where the device can download a new firmware. Are there better ways? like directly uploading a file from a browser, or are we then just making a mess having to parse multipart form-encoded content? |
I have only been experimenting with FOTA a little while, but my preferred method is something like This way the ESP only need to subscribe to one topic and download the .bin when asked to. Your other proposal means that the ESP need to run as a WebServer, and I guess the code would need to be a bit more complicated. |
There is an implementation that is very close to your suggestion in a project I did a while ago here: https://github.com/xnsense/xns-client/blob/master/xnsclient.cpp#L350 |
I suggest the following improvements on your "boot as AP first" code.
And of course, FOTA :)
The text was updated successfully, but these errors were encountered: