Q: how do I implement the "on" event callbacks? The difficulty I have is that Wifi is a library. In order to queue a callback, I believe I need to use:
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.
Q: how do I implement the "on" event callbacks? The difficulty I have is that Wifi is a library. In order to queue a callback, I believe I need to use:
where
wifi
is the wifi library object. But I believe there is no such thing? Suggestions for implementing the events on a global singleton?