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
Diff: app/LoRaMacLayerService.cpp
- Revision:
- 5:6ffeac53b7cb
- Parent:
- 0:69f2e28d12c1
- Child:
- 18:18408c3c2d0c
--- a/app/LoRaMacLayerService.cpp Thu May 19 18:40:59 2016 +0000 +++ b/app/LoRaMacLayerService.cpp Wed Jun 08 01:40:42 2016 +0000 @@ -55,9 +55,7 @@ LoRaMacUplinkStatus.UplinkCounter = McpsConfirm->UpLinkCounter; LoRaMacUplinkStatus.TxPower = McpsConfirm->TxPower; - DeviceState = DEVICE_STATE_CYCLE; - - IsTxUpdate = true; + IsTxIntUpdate = true; } /*! @@ -191,5 +189,9 @@ } } - DeviceState = DEVICE_STATE_CYCLE; + // Schedule next packet transmission + TimerSetValue( &TxNextPacketTimer, OVER_THE_AIR_ACTIVATION_DUTYCYCLE ); + TimerStart( &TxNextPacketTimer ); + + DeviceState = DEVICE_STATE_SLEEP; } \ No newline at end of file