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:
67:7bb75ed97500
Parent:
66:a11c79073f1f
Child:
68:41fff9c3fb4f
--- a/GPS/GPS.cpp	Tue Jan 14 13:48:39 2020 +0000
+++ b/GPS/GPS.cpp	Wed Jan 15 08:37:29 2020 +0000
@@ -61,7 +61,7 @@
     int h;
  
        
-    for (h = 0; h < 6; h++) 
+    for (h = 0; h < 10; h++) 
     {
         printf("\n[GPS] Line %i:",h); 
         getline();  
@@ -83,12 +83,12 @@
                 //GPGGA,092010.000,5210.9546,N,00008.8913,E,1,07,1.3,9.7,M,47.0,M,,0000*5D
  
                 //format utc time to beijing time,add 8 time zone
-                time = time+ 10000.00f;
+                
                 hour = int(time) / 10000;
                 minute = (int(time) % 10000) / 100;
                 seconed = int(time) % 100;
                 
-                printf("\n[GPS] Lock: %ih %im %is\n",time,hour,minute,seconed); 
+                printf("\n[GPS] Lock: %ih %im %is\n",hour,minute,seconed); 
                 
             }//endiflock
         }    //endifscan