You are reading a single comment by @JackBennett and its replies. Click here to read the full conversation.
  • Ok I'm using the right side. Maybe my serial console is set up wrong, the gps is flashing merrily away but my gps.on('data'... or .connect console.logs aren't printing anything.

    If I just test Serial2 I can a pin can't RX but that's because it's not hooked up. Serial1 doesn't leave any errors. Just no output.

    console.log('init');
    
    // GPS Setup
    Serial1.setup(9600, {tx: B6, rx: B7});
    
    
    var gps = require('GPS').connect(Serial1, function(data){
      console.log('Connected');
      console.log(data);
    });
    
    gps.on('data', function(data){
      console.log(data);
    });
    
    

    outut

    >
    =undefined
    >reset();
    =undefined
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v77 Copyright 2015 G.Williams
    >echo(0);
    init
    =undefined
    > 
    

    Oh and I've waited a while and the GPS flashes green every second.

About

Avatar for JackBennett @JackBennett started