Skip to main content
Formatted code
Source Link

iI only use this to get data from the GPS module, no need for library you need to declare an array, say gps_rawData[200] = {0};

while (SerialGPS.available()) { size_t byteCount = SerialGPS.readBytesUntil('\n', gps_rawData, sizeof(gps_rawData) - 1); gps_rawData[byteCount] = NULL; String gps_rawDataString = String(gps_rawData); SerialMon.println(gps_rawDataString); }

while (SerialGPS.available()) {
 size_t byteCount = SerialGPS.readBytesUntil('\n', gps_rawData, 
 sizeof(gps_rawData) - 1);
 gps_rawData[byteCount] = NULL;
 String gps_rawDataString = String(gps_rawData);
 SerialMon.println(gps_rawDataString);
}

thisThis way you have the data in an array to be manipulated whenever or wherever required.

i only use this to get data from the GPS module, no need for library you need to declare an array, say gps_rawData[200] = {0};

while (SerialGPS.available()) { size_t byteCount = SerialGPS.readBytesUntil('\n', gps_rawData, sizeof(gps_rawData) - 1); gps_rawData[byteCount] = NULL; String gps_rawDataString = String(gps_rawData); SerialMon.println(gps_rawDataString); }

this way you have the data in an array to be manipulated whenever or wherever required.

I only use this to get data from the GPS module, no need for library you need to declare an array, say gps_rawData[200] = {0};

while (SerialGPS.available()) {
 size_t byteCount = SerialGPS.readBytesUntil('\n', gps_rawData, 
 sizeof(gps_rawData) - 1);
 gps_rawData[byteCount] = NULL;
 String gps_rawDataString = String(gps_rawData);
 SerialMon.println(gps_rawDataString);
}

This way you have the data in an array to be manipulated whenever or wherever required.

Source Link

i only use this to get data from the GPS module, no need for library you need to declare an array, say gps_rawData[200] = {0};

while (SerialGPS.available()) { size_t byteCount = SerialGPS.readBytesUntil('\n', gps_rawData, sizeof(gps_rawData) - 1); gps_rawData[byteCount] = NULL; String gps_rawDataString = String(gps_rawData); SerialMon.println(gps_rawDataString); }

this way you have the data in an array to be manipulated whenever or wherever required.