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

Revision:
73:974c1df98553
Parent:
72:67c5bce77999
--- a/GPS/GPS.cpp	Tue Jan 28 14:22:48 2020 +0000
+++ b/GPS/GPS.cpp	Fri Jan 31 08:58:37 2020 +0000
@@ -36,7 +36,7 @@
 void GPS::idle(bool idle) 
  {     
     this->is_idle = idle; 
-    gps_off->write(!idle);
+    gps_off->write(idle);
  }
   
   
@@ -52,7 +52,7 @@
     int h; 
     
     lock = 0;   
-    for (h = 0; h < 3; h++)  {
+    for (h = 0; h < 9; h++)  {
         printf("\n[GPS] Line %i:",h); 
         getline();  
         
@@ -60,13 +60,13 @@
             printf(msg);
             if(!lock) {  
                 printf("\n[GPS] Kein Lock: %f %ih %im %is\n",time,hour,minute,seconed); 
-                //time = 0.0;
-//                longitude = 0.0;
-//                latitude = 0.0;
-//                sats = 0;
-//                //hdop = 0.0;
-//                alt = 0.0;
-//                geoid = 0.0;
+                time = 0.0;
+                longitude = 0.0;
+                latitude = 0.0;
+                sats = 0;
+                //hdop = 0.0;
+                alt = 0.0;
+                geoid = 0.0;
                 GPS_signal_okay=0;
             } else {
                 //GPGGA format according http://aprs.gids.nl/nmea/#gga