• @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" ?

About

Avatar for MaBe @MaBe started