After receiving the 'new' wifi connection configuration information, reset the ESP8266, connect with the new configuration, and when it successfully connected, then execute the Wifi.save(), otherwise re-connect with the 'old' info and perform defined number of retries - all programmatically in js (AT commands, etc).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
After receiving the 'new' wifi connection configuration information, reset the ESP8266, connect with the new configuration, and when it successfully connected, then execute the
Wifi.save()
, otherwise re-connect with the 'old' info and perform defined number of retries - all programmatically in js (AT commands, etc).