light sensor
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
Fork of LoRaWAN-SX1276-Application-Demo by
Diff: app/LoRaEventProc.cpp
- Revision:
- 4:a8706ec8a6d0
- Parent:
- 3:4bca7f8f731a
- Child:
- 5:f04a6f68e159
--- a/app/LoRaEventProc.cpp Thu Apr 06 16:35:17 2017 +0000 +++ b/app/LoRaEventProc.cpp Fri Sep 08 20:42:14 2017 +0000 @@ -206,6 +206,22 @@ break; } + + case 13: + { + uint8_t ptrIndex = 0; + uint8_t data_header[2] = {0}; + + //Point the pointer to position index of Tx Buffer + LoRaApp.ApplicationPtrPos( ptrIndex ); + + data_header[0] = 0; + data_header[1] = 0; + + LoRaApp.ApplicationAppendData( data_header, 2 ); + LoRaApp.ApplicationCall( AppExtLight ); // Transmit uplink counter + break; + } default: break;