I'm working on something like this, what would be the best way to send the result of wifi.scan back to the browser? You couldn't just add it in the page request as its Async and needs a callback, perhaps a global to keep track of the Scan, run once on startup then again after every request?
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'm working on something like this, what would be the best way to send the result of wifi.scan back to the browser? You couldn't just add it in the page request as its Async and needs a callback, perhaps a global to keep track of the Scan, run once on startup then again after every request?