Apply busy radio settings and recover service starts automatically
Save valid busy RX, fast-switch and Companion tuple changes once, then apply the latest accepted intent at a safe radio gap. Preserve checked-save rollback, runtime RXEN intent, TempRadio ownership and exact remote reply delivery. Repair failed preamble compensation without hiding uncertain saves. Retry WebConfig, MQTT and NimBLE startup failures automatically. Preserve explicit off choices, OTA ownership and the latest WiFi credentials through cooperative shutdown. Add regression coverage and update command guides. Validation: focused host transaction, rollback, ownership and lifecycle suites; Full RAK4631, Heltec V4 R8 TFT and RC32 packages; representative room, sensor, LR1110, LR2021, SX1276, STM32WL and ESP-NOW builds. Linked RAK crypto and OTA workspace checks pass; its complete OTA image uses 712644/712704 bytes.
This commit is contained in:
1 parent
fb73e3afac
commit
73c5f572eb
89 files changed
+2978
-816
No files matched your search
@@ -265,6 +265,10 @@ public:
|
||||
bool startSetupMode(char reply[]); // open SoftAP + DNS captive portal
|
||||
bool startLanMode(char reply[]); // bind to existing STA connection
|
||||
bool startAutoMode(char reply[]); // use saved WiFi, or setup AP when absent
|
||||
// Accept a start through asynchronous teardown or a transient SDK failure.
|
||||
bool requestStart(bool force_ap, char reply[]);
|
||||
void requestRestart(); // coalesce saved credential changes
|
||||
bool isStartPending() const { return _start_mode != MODE_OFF; }
|
||||
bool reloadStandaloneWiFi();
|
||||
void requestStop(); // stop listening and detach this session
|
||||
// Release HTTP/DNS for the updater without delayed teardown taking its
|
||||
@@ -332,6 +336,10 @@ private:
|
||||
SemaphoreHandle_t _mux;
|
||||
Mode _mode = MODE_OFF;
|
||||
bool _stopping = false;
|
||||
Mode _start_mode = MODE_OFF;
|
||||
uint32_t _start_retry_at = 0;
|
||||
uint32_t _start_retry_delay = 5000;
|
||||
bool _start_retryable = false;
|
||||
bool _keep_wifi_on_stop = false;
|
||||
bool _was_setup_ap = false;
|
||||
bool _initial_setup = false;
|
||||
@@ -421,6 +429,7 @@ private:
|
||||
void noteNetworkActivity();
|
||||
void refreshNetworkPowerHold(uint32_t now);
|
||||
bool beginSavedStation(uint32_t now);
|
||||
void serviceStartRetry(uint32_t now);
|
||||
void registerRoutes();
|
||||
typedef void (WebConfigServer::*RequestHandler)(AsyncWebServerRequest*);
|
||||
static void dispatchRequest(AsyncWebServerRequest* req, RequestHandler handler);
|
||||
|
||||
Reference in new issue
Block a user