Skip to content

Commit 7b90af0

Browse files
tohlhkygoh
andcommitted
Modified lora.c: static void MlmeConfirm(MlmeConfirm_t *mlmeConfirm)
This modification allows the data rate of the device that was set before AT+JOIN to remain even after joining the network. Previously, the data rate of the device will be restored to the default data rate for the first AT+SEND attempt after joining. Co-Authored-By: kygoh <[email protected]>
1 parent 567e122 commit 7b90af0

File tree

1 file changed

+1
-0
lines changed
  • Projects/B-L072Z-LRWAN1/Applications/LoRa/AT_Slave/LoRaWAN/App/src

1 file changed

+1
-0
lines changed

Projects/B-L072Z-LRWAN1/Applications/LoRa/AT_Slave/LoRaWAN/App/src/lora.c

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ static void MlmeConfirm(MlmeConfirm_t *mlmeConfirm)
269269
{
270270
// Status is OK, node has joined the network
271271
LoRaMainCallbacks->LORA_HasJoined();
272+
lora_config_tx_datarate_set(lora_config.TxDatarate);
272273
#ifdef LORAMAC_CLASSB_ENABLED
273274
#if defined( USE_DEVICE_TIMING )
274275
LORA_DeviceTimeReq();

0 commit comments

Comments
 (0)