CommandMgr: wifi/sleep/periods/ota handlers; integrate OTAMgr check at boot; WiFi home flag flow

This commit is contained in:
2025-09-05 14:06:07 +10:00
parent 050d02d822
commit 66baea7a61
2 changed files with 117 additions and 4 deletions

View File

@@ -43,6 +43,17 @@ void setup() {
// GNSS power on (if applicable later)
NetMgr::sendAT("AT+CGNSPWR=1", 2000);
OTAMgr::setCurrentVersion(FW_VERSION);
String ver, url, sha;
if (OTAMgr::check(CFG.baseUrl, CFG.imei, ver, url, sha)) {
Serial.println("OTA available: " + ver + " -> " + url);
// Optionally apply now:
// OTAMgr::apply(url, sha);
}
}
void loop() {