We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe66e5 commit f402e0cCopy full SHA for f402e0c
Projects/B-L072Z-LRWAN1/Applications/LoRa/AT_Slave/LoRaWAN/App/src/lora.c
@@ -891,7 +891,11 @@ int16_t lora_config_rssi_get(void)
891
892
void lora_config_tx_datarate_set(int8_t TxDataRate)
893
{
894
- lora_config.TxDatarate = TxDataRate;
+ mibReq.Type = MIB_CHANNELS_DATARATE;
895
+ mibReq.Param.ChannelsDatarate = TxDataRate;
896
+ if (LoRaMacMibSetRequestConfirm(&mibReq) != LORAMAC_STATUS_PARAMETER_INVALID) {
897
+ lora_config.TxDatarate = TxDataRate;
898
+ }
899
}
900
901
int8_t lora_config_tx_datarate_get(void)
0 commit comments