ввел в работу mqtt

This commit is contained in:
Dmitry Borisenko
2022-01-15 19:11:01 +01:00
parent a9c07e8865
commit 7f5b78b695
3 changed files with 18 additions and 1 deletions

View File

@@ -34,6 +34,9 @@ void setup() {
standWebSocketsInit();
#endif
//инициализация mqtt
mqttInit();
//создаем объект класса выгружающего json массив из файла
mySendJson = new SendJson;
@@ -70,6 +73,9 @@ void loop() {
standWebSocket.loop();
#endif
//обновление mqtt
mqttLoop();
for (unsigned int i = 0; i < iotSensors.size(); i++) {
iotSensors[i]->loop();
}