That code looks a lot cleaner, @countxerox!
Thanks for that advice @oesterle. I've had a go and I think it's improved but I can't close the wifi connection. wifi.disconnect() isn't recognized.
Well, at least it's perfectly OK to call wifi.connect() even when already connected according to the docs. And, your callback is called.
wifi.connect()
I wonder why wifi.disconnect() isn't working? @Gordon, any idea?
wifi.disconnect()
@oesterle 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.
That code looks a lot cleaner, @countxerox!
Well, at least it's perfectly OK to call
wifi.connect()
even when already connected according to the docs. And, your callback is called.I wonder why
wifi.disconnect()
isn't working? @Gordon, any idea?