LoRa send is causing hang-up when a gps fix is acquired
Dependencies: mbed LoRaWAN-lib_publishing_testing_UART_bug SingleFrequencyLora
Fork of simple-demo-76_revised_20171113_copy by
Diff: app/l86.hpp
- Revision:
- 14:539ef77197e0
- Parent:
- 12:dc90bd3ac7d8
diff -r 9f1dd1497e9a -r 539ef77197e0 app/l86.hpp --- a/app/l86.hpp Mon Dec 04 14:48:01 2017 +0000 +++ b/app/l86.hpp Mon Dec 04 21:25:19 2017 +0000 @@ -11,9 +11,9 @@ #define DEBUGGER // uncomment to output serial data to PC /* PIN DEFINITIONS */ -// #define RESET_PIN PB_14 -// #define FORCE_ON_PIN PB_15 -// #define ONEPPS_PIN PA_8 +#define RESET_PIN PB_14 +#define FORCE_ON_PIN PB_15 +#define ONEPPS_PIN PA_8 #define GPS_RX PA_10 #define GPS_TX PA_9 #define PC_RX PC_5 @@ -21,7 +21,7 @@ #define GPS_STATUS_LED LED1 /* PMTK MMESSAGE DEFINITIONS */ -#define MAX_NMEA_LENGTH 328 // maximum length of an NMEA sentence +#define MAX_NMEA_LENGTH 82 // maximum length of an NMEA sentence #define PMTK_SET_NMEA_OUTPUT_RMC "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n" #define PMTK_SET_UPDATE_F_2HZ "$PMTK300,500,0,0,0,0*28\r\n" #define PMTK_COLD_RESTART "$PMTK104*37\r\n" @@ -61,7 +61,7 @@ char Longitude[12]; char Speed_Over_Ground[5]; char Course_Over_Ground[7]; - //char Date[7]; + char Date[7]; char Valid[2]; }GPS_data;