You don't need this extra gps.on("data",...) in lines 12 thru 14. You already pass the callback in anonymous form onto the connected gps (js) module in line 7 thru 10.
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.
You don't need this extra
gps.on("data",...)
in lines 12 thru 14. You already pass the callback in anonymous form onto the connected gps (js) module in line 7 thru 10.