mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-10 05:26:52 +03:00
Moved softAP to the very first checks
This commit is contained in:
@@ -160,6 +160,13 @@ extern "C" void app_main(void)
|
|||||||
return; // No way to continue without SD-Card!
|
return; // No way to continue without SD-Card!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckIsPlannedReboot();
|
||||||
|
CheckOTAUpdate();
|
||||||
|
CheckUpdate();
|
||||||
|
#ifdef ENABLE_SOFTAP
|
||||||
|
CheckStartAPMode(); // if no wlan.ini and/or config.ini --> AP ist startet and this function does not exit anymore until reboot
|
||||||
|
#endif
|
||||||
|
|
||||||
setupTime();
|
setupTime();
|
||||||
|
|
||||||
string versionFormated = getFwVersion() + ", Date/Time: " + std::string(BUILD_TIME) + \
|
string versionFormated = getFwVersion() + ", Date/Time: " + std::string(BUILD_TIME) + \
|
||||||
@@ -179,12 +186,6 @@ extern "C" void app_main(void)
|
|||||||
LogFile.WriteToFile(ESP_LOG_INFO, TAG, versionFormated);
|
LogFile.WriteToFile(ESP_LOG_INFO, TAG, versionFormated);
|
||||||
LogFile.WriteToFile(ESP_LOG_INFO, TAG, "Reset reason: " + getResetReason());
|
LogFile.WriteToFile(ESP_LOG_INFO, TAG, "Reset reason: " + getResetReason());
|
||||||
|
|
||||||
CheckIsPlannedReboot();
|
|
||||||
CheckOTAUpdate();
|
|
||||||
CheckUpdate();
|
|
||||||
#ifdef ENABLE_SOFTAP
|
|
||||||
CheckStartAPMode(); // if no wlan.ini and/or config.ini --> AP ist startet and this function does not exit anymore until reboot
|
|
||||||
#endif
|
|
||||||
|
|
||||||
char *ssid = NULL, *passwd = NULL, *hostname = NULL, *ip = NULL, *gateway = NULL, *netmask = NULL, *dns = NULL; int rssithreashold = 0;
|
char *ssid = NULL, *passwd = NULL, *hostname = NULL, *ip = NULL, *gateway = NULL, *netmask = NULL, *dns = NULL; int rssithreashold = 0;
|
||||||
LoadWlanFromFile(WLAN_CONFIG_FILE, ssid, passwd, hostname, ip, gateway, netmask, dns, rssithreashold);
|
LoadWlanFromFile(WLAN_CONFIG_FILE, ssid, passwd, hostname, ip, gateway, netmask, dns, rssithreashold);
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ src_dir = main
|
|||||||
|
|
||||||
[env:esp32cam]
|
[env:esp32cam]
|
||||||
platform = espressif32@5.2.0
|
platform = espressif32@5.2.0
|
||||||
|
;platform = espressif32@5.3.0
|
||||||
board = esp32cam
|
board = esp32cam
|
||||||
;board = m5stack-core-esp32
|
;board = m5stack-core-esp32
|
||||||
framework = espidf
|
framework = espidf
|
||||||
|
|||||||
Reference in New Issue
Block a user