That worked well! Next issue... do you have a pattern somewhere for using timers in native code? When a wifi connection attempt fails I'd like to schedule a reconnection attempt a few seconds out. How do I do that?
(Background is that the SDK auto reconnects, but every second, and on battery that's a total killer. So I'd like to implement my own reconnection logic with exponential back-off.)
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 worked well! Next issue... do you have a pattern somewhere for using timers in native code? When a wifi connection attempt fails I'd like to schedule a reconnection attempt a few seconds out. How do I do that?
(Background is that the SDK auto reconnects, but every second, and on battery that's a total killer. So I'd like to implement my own reconnection logic with exponential back-off.)