That looks elegant and simple. How about some control over the timing settings as parameters? Something like :
try { require("gps-settings").setLowPower(update,search); } catch (e) { // GPS settings not installed }
And a way of reading current state ? ( eg. whether on/off, mode and current settings )
@user125066 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 looks elegant and simple. How about some control over the timing settings as parameters? Something like :
And a way of reading current state ? ( eg. whether on/off, mode and current settings )