light sensor
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
Fork of LoRaWAN-SX1276-Application-Demo by
Diff: app/LoRaEventProc.cpp
- Revision:
- 6:25f847c99aa2
- Parent:
- 5:f04a6f68e159
diff -r f04a6f68e159 -r 25f847c99aa2 app/LoRaEventProc.cpp --- a/app/LoRaEventProc.cpp Fri Sep 08 21:05:04 2017 +0000 +++ b/app/LoRaEventProc.cpp Sat Sep 09 00:26:19 2017 +0000 @@ -210,16 +210,13 @@ case 13: { uint8_t ptrIndex = 0; - uint8_t data_header[2] = {0}; - - //Point the pointer to position index of Tx Buffer - LoRaApp.ApplicationPtrPos( ptrIndex ); + uint8_t data_header[3] = {1, 8, 1}; - //data_header[0] = 0; - //data_header[1] = 0; + //Point the pointer to position index of Tx Buffer + LoRaApp.ApplicationPtrPos( ptrIndex ); - //LoRaApp.ApplicationAppendData( data_header, 2 ); - LoRaApp.ApplicationCall( AppExtLight ); // Transmit uplink counter + LoRaApp.ApplicationAppendData( data_header, 3 ); + LoRaApp.ApplicationCall( AppExtLight ); // Transmit uplink counter break; }