mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Boot phase: Add more error handling + provide verbose output in error cases (#2020)
* WLAN: add error handling * WLAN: parameter global struct * WLAN.ini -> more info text * RSSIThreshold * Rename logs * Boot process: error handling * Update texts * Comments * Init sequence * Prepare for check dir creation * add check makedir, update logs * Blink code for OTA+SoftAP * Blink code for missing time snyc * Update * reboot -> switch LED off * Update log texts * Update * Update log texts * create empty default folders at startup * Update * Adapt log level * Print log level switch * Update * Update text * Add SD free space to log * WIFI/MQTT disconnect message set to WARN (+ ERROR)
This commit is contained in:
@@ -283,7 +283,7 @@ function ParseConfig() {
|
||||
aktline++;
|
||||
}
|
||||
|
||||
// Make the downward compatiblity
|
||||
// Make the downward compatiblity with DataLogging
|
||||
if (category["DataLogging"]["found"] == false)
|
||||
{
|
||||
category["DataLogging"]["found"] = true;
|
||||
@@ -315,8 +315,16 @@ function ParseConfig() {
|
||||
param["DataLogging"]["DataFilesRetention"]["value1"] = "3";
|
||||
}
|
||||
|
||||
// Downward compatiblity: Create RSSIThreshold if not available
|
||||
if (param["System"]["RSSIThreshold"]["found"] == false)
|
||||
{
|
||||
param["System"]["RSSIThreshold"]["found"] = true;
|
||||
param["System"]["RSSIThreshold"]["enabled"] = false;
|
||||
param["System"]["RSSIThreshold"]["value1"] = "0";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function ParamAddValue(param, _cat, _param, _anzParam = 1, _isNUMBER = false, _checkRegExList = null){
|
||||
param[_cat][_param] = new Object();
|
||||
param[_cat][_param]["found"] = false;
|
||||
|
||||
Reference in New Issue
Block a user