Example code for reading from a serial GPS unit & parsing an RMC GPS string to a struct.

Dependencies:   mbed

Fork of mbed_blinky by Mbed

Files at this revision

API Documentation at this revision

Comitter:
HackerLabATTKit01
Date:
Tue Mar 14 21:22:36 2017 +0000
Parent:
19:cbacec32ae4b
Commit message:
Added comment option for using MODSERIAL instead of Serial

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Mar 09 22:31:06 2017 +0000
+++ b/main.cpp	Tue Mar 14 21:22:36 2017 +0000
@@ -5,6 +5,8 @@
 
 Serial pc(USBTX, USBRX); // tx, rx
 Serial xgps(PTC15, PTC14);
+// If using MODSERIAL (as part of the WNC Interface for the AT&T IoT Starter Kit):
+// MODSERIAL xgps(PTC15, PTC14, GPSBUFFSIZE, GPSBUFFSIZE);
 
 unsigned gpsSentenceIndex = 0;
 char gpsSentence[GPSBUFFSIZE];