This is an example application based on Mbed-OS LoRaWAN protocol APIs. The Mbed-OS LoRaWAN stack implementation is compliant with LoRaWAN v1.0.2 specification.
Dependencies: Lorawan_Version_0_1
Dependents: Lorawan_Version_0_1
Diff: GPS/GPS.h
- Revision:
- 70:65b2f1cc2859
- Parent:
- 69:316fee01f5d9
- Child:
- 71:ca2425c0a864
diff -r 316fee01f5d9 -r 65b2f1cc2859 GPS/GPS.h --- a/GPS/GPS.h Sun Jan 19 15:53:57 2020 +0000 +++ b/GPS/GPS.h Tue Jan 21 13:20:59 2020 +0000 @@ -34,7 +34,7 @@ * for example, GlobalSat EM406-A (e.g. on SparkFun GPS Shield) is 4800 Baud, * Adafruit Ultimate GPSv3 (connected to serial) is 9600 Baud */ - GPS(PinName tx, PinName rx, int Baud); + GPS(PinName tx, PinName rx, int Baud,DigitalOut *gps_off); /** Sample the incoming GPS data, returning whether there is a lock * @@ -43,6 +43,7 @@ int sample(); void idle(bool idle); + void set_manual_tracking(bool mt) ; void GPS_aktiv(); /** Beijig time format(shi,fen,miao) **/ @@ -78,7 +79,7 @@ float geoid; bool is_idle; - uint32_t idle_time; + bool manual_tracking; /** The NMEA sentence */ char msg[256]; @@ -87,6 +88,7 @@ private: float trunc(float v); void getline(); + DigitalOut *gps_off; //create a serial object Serial _gps;