Skip to content

Commit

Permalink
Issue #1019 - Changed the LmHandler to apply user default data rate
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Jaeckle authored and mluis1 committed Mar 17, 2021
1 parent ae0e452 commit 9a6c7dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/apps/LoRaMac/common/LmHandler/LmHandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,15 @@ LmHandlerErrorStatus_t LmHandlerInit( LmHandlerCallbacks_t *handlerCallbacks,
}
else
{
// Configure the default datarate
mibReq.Type = MIB_CHANNELS_DEFAULT_DATARATE;
mibReq.Param.ChannelsDefaultDatarate = LmHandlerParams->TxDatarate;
LoRaMacMibSetRequestConfirm( &mibReq );

mibReq.Type = MIB_CHANNELS_DATARATE;
mibReq.Param.ChannelsDatarate = LmHandlerParams->TxDatarate;
LoRaMacMibSetRequestConfirm( &mibReq );

#if( OVER_THE_AIR_ACTIVATION == 0 )
// Tell the MAC layer which network server version are we connecting too.
mibReq.Type = MIB_ABP_LORAWAN_VERSION;
Expand Down

0 comments on commit 9a6c7dc

Please sign in to comment.