Hmm - actually that documentation isn't too clear... It should (IMO):
Close any sockets opened by the JS code (does this)
Clear the program/intervals/etc and not load saved code (does this)
Reset the pin states to power-on states (jshReset)
Ideally it should be as close to power-on as possible, but as you say we ought to think that maybe someone will be programming it via a network connection in the future.
So yes, I think probably leave WiFi as-is. There is the default argument when connecting to an AP or making one, and I wonder whether if that is false we should probably disconnect from WiFi (you can put it to sleep I think?).
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.
Hmm - actually that documentation isn't too clear... It should (IMO):
Ideally it should be as close to power-on as possible, but as you say we ought to think that maybe someone will be programming it via a network connection in the future.
So yes, I think probably leave WiFi as-is. There is the
default
argument when connecting to an AP or making one, and I wonder whether if that isfalse
we should probably disconnect from WiFi (you can put it to sleep I think?).