Just to elaborate on @allObjects post as I'm not sure it's that clear:
The GPS TX pin needs to be connected to Puck.js RX (it's not TX->TX) - which with the inital code here is D28:
D28
Serial1.setup(9600,{tx:D29,rx:D28}); var gps = require("GPS").connect(Serial1, function(data) { console.log("DATA", data); });
You mentioned in your post that you're getting some data on D29 to it might just be that you have the pins swapped over :)
D29
You could also try:
Serial1.setup(9600,{tx:D29,rx:D28}); Serial1.on('data', function(d) { console.log(JSON.stringify(d)); });
Which will print out all data that was received - whether it's a valid GPS line or not. Might be handy for debugging?
@Gordon 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.
Just to elaborate on @allObjects post as I'm not sure it's that clear:
The GPS TX pin needs to be connected to Puck.js RX (it's not TX->TX) - which with the inital code here is
D28
:You mentioned in your post that you're getting some data on
D29
to it might just be that you have the pins swapped over :)You could also try:
Which will print out all data that was received - whether it's a valid GPS line or not. Might be handy for debugging?