/*
21/08/21 - Get first 6 chars
Pimoroni PA1010D GPS module
MEGA256
// op = op + gpsString.substring(0, 5);
*/
#include <Adafruit_GPS.h>
Adafruit_GPS GPS(&Wire);
int opc = 0;
String op = ""; // Init str
String gpsString = ""; // Init str
void setup() {
GPS.begin(0x10);
Serial.begin(115200);
Serial.println("GPS data disp on SSD1306");
}
void loop() {
String gpsString = String(GPS.read());
if (gpsString = "$") {
disp ();
}
}
void disp()
{
op = "";
op = gpsString;
for (int opc = 0; opc < 5; opc ++) {
String gpsString = String(GPS.read());
op = op + gpsString;
}
Serial.print(op);
}
Any pointers to the detail on the data retrieved by GPS.read? construct chars used to signal beginning and end of lines of data? does the function have any other parameters?