remove confirmation retry increase

This commit is contained in:
xlemmingx 2025-11-03 16:35:53 +01:00
parent 71c0386229
commit e4f6382fce

View File

@ -194,18 +194,13 @@ void init_lorawan()
/* Set to SF12 (DR0) for maximum range - good for 5-10min intervals */
int ret = lorawan_set_datarate(LORAWAN_DR_0);
if (ret == 0) {
if (ret == 0)
{
LOG_INF("✓ Datarate set to DR0 (SF12) for maximum range");
} else {
LOG_WRN("Could not set datarate (ADR may override): %d", ret);
}
/* Increase confirmation retries for better reliability */
ret = lorawan_set_conf_msg_tries(8);
if (ret == 0) {
LOG_INF("✓ Confirmation retries set to 8 for better reliability");
} else {
LOG_WRN("Could not set confirmation retries: %d", ret);
else
{
LOG_WRN("Could not set datarate (ADR may override): %d", ret);
}
/* Print all LoRaWAN configuration for debugging */