remove confirmation retry increase
This commit is contained in:
parent
71c0386229
commit
e4f6382fce
@ -194,18 +194,13 @@ void init_lorawan()
|
|||||||
|
|
||||||
/* Set to SF12 (DR0) for maximum range - good for 5-10min intervals */
|
/* Set to SF12 (DR0) for maximum range - good for 5-10min intervals */
|
||||||
int ret = lorawan_set_datarate(LORAWAN_DR_0);
|
int ret = lorawan_set_datarate(LORAWAN_DR_0);
|
||||||
if (ret == 0) {
|
if (ret == 0)
|
||||||
|
{
|
||||||
LOG_INF("✓ Datarate set to DR0 (SF12) for maximum range");
|
LOG_INF("✓ Datarate set to DR0 (SF12) for maximum range");
|
||||||
} else {
|
|
||||||
LOG_WRN("Could not set datarate (ADR may override): %d", ret);
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
/* Increase confirmation retries for better reliability */
|
{
|
||||||
ret = lorawan_set_conf_msg_tries(8);
|
LOG_WRN("Could not set datarate (ADR may override): %d", ret);
|
||||||
if (ret == 0) {
|
|
||||||
LOG_INF("✓ Confirmation retries set to 8 for better reliability");
|
|
||||||
} else {
|
|
||||||
LOG_WRN("Could not set confirmation retries: %d", ret);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print all LoRaWAN configuration for debugging */
|
/* Print all LoRaWAN configuration for debugging */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user