-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Flash SPIFFS over the air (OTA) #802
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
Conversation
May I suggest to update the example to acknowledge the fact that SDK will automatically reconnect to the last used WiFi network? We only need to call WiFi.begin() if there was a change to SSID/password. Otherwise this leads to rewriting SDK config sectors on every boot. |
Your idea is great but i had to add two functions to the ESP8266WiFi class:
I tried it multiple times without calling So I hope that you are able to understand my explanation in english ;) and you are to agree with my solution? |
Adding |
It might be worth changing const char* ssid = "adasdasd";
const char* psk = "23801380123";
...
if (WiFi.ssid() != ssid || WiFi.psk() != psk) { ... } I.e. this will result in pointer comparison rather than string comparison. |
I agree. Needing to do a
How about internally doing this check in |
i will add string return functions in a few days. |
Sorry i added maginal changes after your merge from #802
I updated the
espota.py
, theUpdaterClass
and added an example sketch:OTA-MDNS-SPIFFS
I did some tests with Ubuntu 14.04 (python version 2.7) and a generic ESP8266-01 module with 1M64k:
espota.py
espota.py
All test work successfully but it has to be tested with another OS and someone has to be update the esp8266fs.jar to upgrade the SPIFFS image over the air if this options is active.
espota.py
changes:Please feel free to post your test results here. Tanks!