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:
- 13:7c3f8a6bad36
- Parent:
- 12:497383202228
- Child:
- 15:f2972c2919ee
diff -r 497383202228 -r 7c3f8a6bad36 app/main.cpp --- a/app/main.cpp Fri Mar 22 16:50:10 2019 +0000 +++ b/app/main.cpp Fri Mar 22 16:53:08 2019 +0000 @@ -872,6 +872,11 @@ mibReq.Param.EnablePublicNetwork = LORAWAN_PUBLIC_NETWORK; LoRaMacMibSetRequestConfirm( &mibReq ); + mibReq.Type = MIB_DEVICE_CLASS; + mibReq.Param.Class = CLASS_C; + LoRaMacMibSetRequestConfirm( &mibReq ); + + #if defined( USE_BAND_868 ) LoRaMacTestSetDutyCycleOn( LORAWAN_DUTYCYCLE_ON ); SerialDisplayUpdateDutyCycle( LORAWAN_DUTYCYCLE_ON );