mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Добавил массив виджетов и реализовал их отправку
This commit is contained in:
@@ -38,7 +38,8 @@ void setup() {
|
||||
mqttInit();
|
||||
|
||||
//создаем объект класса выгружающего json массив из файла
|
||||
mySendJson = new SendJson;
|
||||
sendConfigJson = new SendJson;
|
||||
sendWigdetsJson = new SendJson;
|
||||
|
||||
configure("/config.json");
|
||||
|
||||
@@ -61,7 +62,8 @@ void loop() {
|
||||
ts.update();
|
||||
|
||||
//отправка json
|
||||
if (mySendJson) mySendJson->loop();
|
||||
if (sendConfigJson) sendConfigJson->loop();
|
||||
if (sendWigdetsJson) sendWigdetsJson->loop();
|
||||
|
||||
#ifdef STANDARD_WEB_SERVER
|
||||
//обработка web сервера
|
||||
|
||||
Reference in New Issue
Block a user