добавил очередь отправки файлов в сокеты

This commit is contained in:
Dmitry Borisenko
2022-01-19 22:54:33 +01:00
parent 003c130eef
commit 221ad5f5d4
14 changed files with 66 additions and 30 deletions

View File

@@ -35,11 +35,11 @@ void setup() {
#endif
//инициализация mqtt
mqttInit();
// mqttInit();
//создаем объект класса выгружающего json массив из файла
sendConfigJson = new SendJson;
sendWigdetsJson = new SendJson;
sendJsonFiles = new SendJson;
configure("/config.json");
@@ -62,8 +62,7 @@ void loop() {
ts.update();
//отправка json
if (sendConfigJson) sendConfigJson->loop();
if (sendWigdetsJson) sendWigdetsJson->loop();
if (sendJsonFiles) sendJsonFiles->loop();
#ifdef STANDARD_WEB_SERVER
//обработка web сервера