Skip to content

Commit 9a6c7dc

Browse files
Daniel Jaecklemluis1
authored andcommitted
Issue #1019 - Changed the LmHandler to apply user default data rate
1 parent ae0e452 commit 9a6c7dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/apps/LoRaMac/common/LmHandler/LmHandler.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ LmHandlerErrorStatus_t LmHandlerInit( LmHandlerCallbacks_t *handlerCallbacks,
263263
}
264264
else
265265
{
266+
// Configure the default datarate
267+
mibReq.Type = MIB_CHANNELS_DEFAULT_DATARATE;
268+
mibReq.Param.ChannelsDefaultDatarate = LmHandlerParams->TxDatarate;
269+
LoRaMacMibSetRequestConfirm( &mibReq );
270+
271+
mibReq.Type = MIB_CHANNELS_DATARATE;
272+
mibReq.Param.ChannelsDatarate = LmHandlerParams->TxDatarate;
273+
LoRaMacMibSetRequestConfirm( &mibReq );
274+
266275
#if( OVER_THE_AIR_ACTIVATION == 0 )
267276
// Tell the MAC layer which network server version are we connecting too.
268277
mibReq.Type = MIB_ABP_LORAWAN_VERSION;

0 commit comments

Comments
 (0)