Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed LoRaWAN-lib SX1276Lib
Diff: app/main.cpp
- Revision:
- 15:f2972c2919ee
- Parent:
- 13:7c3f8a6bad36
--- a/app/main.cpp Fri Mar 22 16:55:52 2019 +0000 +++ b/app/main.cpp Fri Mar 22 19:03:45 2019 +0000 @@ -870,12 +870,16 @@ mibReq.Type = MIB_PUBLIC_NETWORK; mibReq.Param.EnablePublicNetwork = LORAWAN_PUBLIC_NETWORK; + + LoRaMacMibSetRequestConfirm( &mibReq ); - + + +/*Class C updated Code Start----------------------------------------------------*/ mibReq.Type = MIB_DEVICE_CLASS; mibReq.Param.Class = CLASS_C; LoRaMacMibSetRequestConfirm( &mibReq ); - +/* Class C updated Code END----------------------------------------------------*/ #if defined( USE_BAND_868 ) LoRaMacTestSetDutyCycleOn( LORAWAN_DUTYCYCLE_ON ); @@ -953,6 +957,7 @@ } case DEVICE_STATE_SEND: { + if( NextTx == true ) { SerialDisplayUpdateUplinkAcked( false ); @@ -971,6 +976,7 @@ // Schedule next packet transmission TxDutyCycleTime = APP_TX_DUTYCYCLE + randr( -APP_TX_DUTYCYCLE_RND, APP_TX_DUTYCYCLE_RND ); } + DeviceState = DEVICE_STATE_CYCLE; break; }