-->
Page 1 of 2

ESP8266 OTA update with new wifi password

PostPosted: Wed Sep 05, 2018 2:26 pm
by stealthrt
Hey all I have a C# program that allows me to upload the .BIN file to my ESP8266 (Wemos D1 mini) board and that does just fine at updating the .ino code if updates are needed.

However, I am wondering how I would go about doing that if my wifi network changes the password to access the wifi?

I use mDNS in order to not care about the wifi's IP address but I have yet to find anything that would still allow me to do an OTA update when the wifi has changed its password from the one coded in the .ino file.

So if I save the password into the SPIFF, how would I access the Wemos D1 mini if the password changes and I needed to update the password on the Wemos D1 mini to reflect that password change? It would seem to me that it would not connect since the old password would be used when asking to do a OTA update?

I may be over thinking this - or missed something very obvious that I am looking over but any ideas on how to fix this issue would be great! :D

Re: ESP8266 OTA update with new wifi password

PostPosted: Thu Sep 06, 2018 2:33 am
by QuickFix
The answer to your question is: WiFiManager. :idea:

Re: ESP8266 OTA update with new wifi password

PostPosted: Thu Sep 06, 2018 6:02 am
by schufti
I don't think that he wants to go to every device and (re)configure it for the new AP.
He would rather think about sth like using WiFiMulti and configure the current / next / fallback SSID/password combination to deliver per OTA.

Re: ESP8266 OTA update with new wifi password

PostPosted: Thu Sep 06, 2018 7:10 am
by QuickFix
schufti wrote:I don't think

Good point and nice alternative. 8-)