• For the sake of making the firmware simpler/smaller I wonder if the wifi.save() could simple store wifi config script instead of the the JSON it does now?

    This could still be constructing and saving a string and perhaps it would be more bytes written to the .wificfg in the end but I think the benefit of not having to translate the JSON to other setup could make it simpler (the following two functions would not need to exist):

    libs/network/esp32/jswrap_esp32_network.­c:1359:void jswrap_wifi_restore(void) {
    libs/network/esp8266/jswrap_esp8266_netw­ork.c:902:void jswrap_wifi_restore(void) {
    

    I mean like making wifi.save() save something like this to .wificfg:

    (function(w) {
        w.stopAP()
        w.setHostname(...)
        w.connect(..)
    })(require('Wifi'))
    

    Or perhaps we don't need any wifi.save at all with the .bootX automatic loading?

About

Avatar for opichals @opichals started