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):
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.
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):I mean like making
wifi.save()
save something like this to.wificfg
:Or perhaps we don't need any
wifi.save
at all with the .bootX automatic loading?