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
Revision 15:f2972c2919ee, committed 2019-03-22
- Comitter:
- amirchaudhary
- Date:
- Fri Mar 22 19:03:45 2019 +0000
- Parent:
- 14:48507b720d02
- Commit message:
- Changed D8 to D15 in Sx1276-hal.cpp library to control Blue LED.
Changed in this revision
app/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
radio/SX1276Lib.lib | Show annotated file Show diff for this revision Revisions of this file |
--- 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; }
--- a/radio/SX1276Lib.lib Fri Mar 22 16:55:52 2019 +0000 +++ b/radio/SX1276Lib.lib Fri Mar 22 19:03:45 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/amirchaudhary/code/SX1276Lib/#ac899348b6cc +https://os.mbed.com/users/amirchaudhary/code/SX1276Lib/#2aa108ba9f51