mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
добавил очередь отправки файлов в сокеты
This commit is contained in:
@@ -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 сервера
|
||||
|
||||
Reference in New Issue
Block a user