I find it quite a good feature of not having to include the SSID and credentials to the actual device code. It doesn't belong there. I use onInit() { wifi.on('connected', function() {}) }.
I wish I could do something like espruino -e 'wifi.connect($SSID, { password: $PASS },
() => wifi.save()) where I would be prompted to type in the password which would be sent to the board but I have yet to find a way which would not require saving the script to a file first.
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.
I find it quite a good feature of not having to include the SSID and credentials to the actual device code. It doesn't belong there. I use
onInit() { wifi.on('connected', function() {}) }
.I wish I could do something like
espruino -e 'wifi.connect($SSID, { password: $PASS }, () => wifi.save())
where I would be prompted to type in the password which would be sent to the board but I have yet to find a way which would not require saving the script to a file first.