Application example using LoRaWAN-lib MAC layer implementation for STM32 + SX1276 on OpenChirp
Dependencies: mbed LoRaWAN-lib SX1276Lib
Diff: app/main.cpp
- Revision:
- 13:779fef3e4573
- Parent:
- 12:bf1efd688cc8
--- a/app/main.cpp Fri Jun 28 20:18:15 2019 +0000 +++ b/app/main.cpp Sun Sep 15 17:10:06 2019 +0000 @@ -7,10 +7,6 @@ (C)2015 Semtech Description: LoRaMac classA device implementation - -License: Revised BSD License, see LICENSE.TXT file include in the project - -Maintainer: Miguel Luis and Gregory Cristian */ #include "mbed.h" #include "board.h" @@ -160,6 +156,9 @@ volatile bool Led2State = false; volatile bool Led2StateChanged = false; + +DigitalOut myled(PA_5, 1); + /*! * Indicates if a new packet can be sent */ @@ -574,6 +573,7 @@ if( mcpsIndication->BufferSize == 1 ) { AppLedStateOn = mcpsIndication->Buffer[0] & 0x01; + myled = 1; Led3StateChanged = true; } break;