remove lorawan tuning
This commit is contained in:
parent
e4f6382fce
commit
88b017c299
@ -185,24 +185,6 @@ void init_lorawan()
|
|||||||
LOG_INF("LoraWan started successfully");
|
LOG_INF("LoraWan started successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Apply LoRaWAN performance optimizations */
|
|
||||||
LOG_INF("Applying LoRaWAN performance optimizations...");
|
|
||||||
|
|
||||||
/* Enable ADR for automatic datarate optimization */
|
|
||||||
lorawan_enable_adr(true);
|
|
||||||
LOG_INF("✓ ADR (Adaptive Data Rate) enabled");
|
|
||||||
|
|
||||||
/* Set to SF12 (DR0) for maximum range - good for 5-10min intervals */
|
|
||||||
int ret = lorawan_set_datarate(LORAWAN_DR_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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Print all LoRaWAN configuration for debugging */
|
/* Print all LoRaWAN configuration for debugging */
|
||||||
print_lorawan_ids();
|
print_lorawan_ids();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user