Open sbonaime opened 4 years ago
Hi, I wand to use a GPS and another Serial sensor. I use two SoftwareSerial. How tinyGPSPlus is linked to the right Serial ?
#include <TinyGPS++.h> #include <SoftwareSerial.h> static const int RXPin = 4, TXPin = 3; static const int RXPin2 = 14, TXPin2 = 15; static const uint32_t GPSBaud = 4800; // The TinyGPS++ object TinyGPSPlus gps; // The serial connection to the GPS device SoftwareSerial serialGPS(RXPin, TXPin); SoftwareSerial otherSerialsensor(RXPin2, TXPin2);
Hi, you just forget to add the '2's in line 5.
Hi, I wand to use a GPS and another Serial sensor. I use two SoftwareSerial. How tinyGPSPlus is linked to the right Serial ?