GPS working with LoRa code - can't transmit faster that once every 6 seconds
Dependencies: mbed LoRaWAN-lib_gps_lora SingleFrequencyLora
Diff: app/l86.cpp
- Revision:
- 15:b4d11baea8bc
- Parent:
- 13:66d854ad31d8
diff -r 9e41438308eb -r b4d11baea8bc app/l86.cpp --- a/app/l86.cpp Fri Nov 24 15:39:51 2017 +0000 +++ b/app/l86.cpp Wed Nov 29 15:01:09 2017 +0000 @@ -90,7 +90,9 @@ strcpy(GPS_parsed.Longitude, tempLong); strcpy(GPS_parsed.Speed_Over_Ground,RMC_parsed.Speed_Over_Ground); strcpy(GPS_parsed.Course_Over_Ground,RMC_parsed.Course_Over_Ground); - strcpy(GPS_parsed.Date,RMC_parsed.Date); + // strcpy(GPS_parsed.Date,RMC_parsed.Date); + strcpy(GPS_parsed.Node_ID, TEST_NODE_ID); + strcpy(GPS_parsed.Node_Type, TEST_NODE_TYPE); strcpy(GPS_parsed.Valid,RMC_parsed.Status); } else { @@ -98,8 +100,10 @@ strcpy(GPS_parsed.Latitude,"+0000.0000"); strcpy(GPS_parsed.Longitude,"+00000.0000"); strcpy(GPS_parsed.Speed_Over_Ground,"0.00"); - strcpy(GPS_parsed.Course_Over_Ground,"000.00"); - strcpy(GPS_parsed.Date,"000000"); + strcpy(GPS_parsed.Course_Over_Ground,"000.00"); + strcpy(GPS_parsed.Node_ID, TEST_NODE_ID); + strcpy(GPS_parsed.Node_Type, TEST_NODE_TYPE); + // strcpy(GPS_parsed.Date,"000000"); strcpy(GPS_parsed.Valid,RMC_parsed.Status); } return GPS_parsed; @@ -113,6 +117,6 @@ pc2.printf("Longitude: %s\r\n",GPS_data_print.Longitude); pc2.printf("Speed: %s\r\n",GPS_data_print.Speed_Over_Ground); pc2.printf("Course: %s\r\n",GPS_data_print.Course_Over_Ground); - pc2.printf("Date: %s\r\n",GPS_data_print.Date); + // pc2.printf("Date: %s\r\n",GPS_data_print.Date); }