mQ Branch for NA mote testing

Dependencies:   LoRaWAN-lib SX1272Lib-mQ lib_gps lib_mma8451q lib_mpl3115a2 mbed

Fork of LoRaWAN-NAMote72-Application-Demo by Semtech

Revision:
15:39a23f5affd1
Parent:
13:6b6f4be13633
Child:
18:18408c3c2d0c
--- a/app/LoRaEventProc.cpp	Tue Aug 30 18:56:17 2016 +0000
+++ b/app/LoRaEventProc.cpp	Wed Aug 31 21:01:03 2016 +0000
@@ -154,6 +154,7 @@
     case 13: 
         { 
             uint8_t ptrIndex = 0;
+            uint8_t tmp = 0;
             
             //Point the pointer to position index of Tx Buffer
             LoRaApp.ApplicationPtrPos( ptrIndex );
@@ -165,7 +166,17 @@
             LoRaApp.ApplicationCall( AppBat );
             
             LoRaApp.ApplicationCall( AppAcclSensor ); // Generate Accelerometer data bytes  
-                         
+
+            if( AppLed == 1 )
+            {
+                tmp = 0x01;
+            }
+            else
+            {
+                tmp = 0x00;
+            }
+            
+            LoRaApp.ApplicationAppendData( &tmp, 1 );                        
 
             break;
         }