Looking into the implementation of the GPS module to extend it with a handler for other sentences - handleGPSLine()-methods - was a bit sobering... to say the least. My basic expectation was to find an externally extensible sentence filter with hooks and registration for other line handlers, or at least a way to override the already implemented, default GPS line handler. Unfortunately, the module is built in a way that ,gives no access what so ever for modifications or extensions. ;(
Why not extend the GPS module itself to fix this, and put in a pull request?
Modifying the module code would be a much more graceful solution, I'd say.
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.
Why not extend the GPS module itself to fix this, and put in a pull request?
Modifying the module code would be a much more graceful solution, I'd say.