CommandMgr: wifi/sleep/periods/ota handlers; integrate OTAMgr check at boot; WiFi home flag flow
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user