@tve I like the idea : start "ap" when "sta" fails by default !
ignore this, cannot produce anymore
mode is changing when changing phy and powersave like this ?!
what about
// event Wifi.dhcp_timeout() ? what fires that one ?
try to test save("clear") and restore()
Wifi.save("clear"); resert(); ........ var Wifi = require("Wifi"); Wifi.restore(); Wifi.getStatus(); ={ "mode": "off", "station": "off", "ap": "disabled", "phy": "11g", "powersave": "none", "savedMode": "off" } Wifi.getDetails(); ={ "status": "off", "ssid": "mySSID", "password": "myPassword", "savedSsid": null } >Wifi.getAPDetails(); ={ "status": "disabled", "authMode": "wpa2", "hidden": false, "maxConn": 4, "ssid": "ESP001", "password": "esp00001", "savedSsid": null } >
so it clears the overall wifi configuration and keeps station and access point configuration. Is that what you implemented for "clear" ?
@MaBe started
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.
@tve I like the idea : start "ap" when "sta" fails by default !
ignore this, cannot produce anymore
what about
try to test save("clear") and restore()
so it clears the overall wifi configuration and keeps station and access point configuration.
Is that what you implemented for "clear" ?