GPSlibrary
Diff: GPS.h
- Revision:
- 0:3d25bc7ff80e
- Child:
- 1:432f77f0d864
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GPS.h Tue Jul 16 12:07:09 2019 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" + +#ifndef GPS_Class +#define GPS_Class + +class GPS +{ + +private: + Serial gps; + PinName _tx; //tx pin name which connected to mbed + PinName _rx; //rx pin name which connected to mbed + //char GPSMessage[128]; + + +public: + GPS(PinName tx, PinName rx); + int getGPGGA(); + char GPSMessage[128]; + //char eGPSMessage[128]; + +}; + +#endif \ No newline at end of file