mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
ввел в работу mqtt
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user