I'm looking at what we really need to do for a reset() call on the esp8266. This is the documentation for reset():
Reset the interpreter - clear program memory, and do not load a saved program from flash. This does NOT reset the underlying hardware (which allows you to reset the device without it disconnecting from USB).
From that I gather that wifi really shouldn't be touched because (looking a little bit ahead) the user is probably connected via wifi to the interpreter. The docs would then say "which allows you to reset the device without it disconnecting from USB or Wifi".
The alternative would be to try and put the wifi into the power-on state (which can have a default connection set) but there is an ESP8266.reboot() which does a hardware reboot for situations where the user really wants the power-up clean slate.
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.
I'm looking at what we really need to do for a reset() call on the esp8266. This is the documentation for reset():
From that I gather that wifi really shouldn't be touched because (looking a little bit ahead) the user is probably connected via wifi to the interpreter. The docs would then say "which allows you to reset the device without it disconnecting from USB or Wifi".
The alternative would be to try and put the wifi into the power-on state (which can have a default connection set) but there is an ESP8266.reboot() which does a hardware reboot for situations where the user really wants the power-up clean slate.