This commit is contained in:
Yuri Trikoz
2020-06-25 05:09:11 +03:00
parent 3daa517c7e
commit b50e1c9791
73 changed files with 260 additions and 296 deletions

View File

@@ -1,11 +1,15 @@
#include "Global.h"
#include "HttpServer.h"
#include "Utils/i2c_bus.h"
void not_async_actions();
static const char* MODULE = "Main";
void do_fscheck(String& results) {
}
void setup() {
WiFi.setAutoConnect(false);
WiFi.persistent(false);
@@ -73,7 +77,7 @@ void setup() {
}
void saveConfig() {
writeFile("config.json", configSetupJson);
writeFile(String("config.json"), configSetupJson);
}
void loop() {
@@ -114,7 +118,17 @@ void not_async_actions() {
do_mqtt_send_settings_to_udp();
#endif
do_i2c_scanning();
if (i2c_scanning) {
do_i2c_scanning();
i2c_scanning = false;
}
if (fscheck_flag) {
String buf;
do_fscheck(buf);
jsonWriteStr(configLiveJson, "fscheck", buf);
fscheck_flag = false;
}
}
String getURL(const String& urls) {