mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Разрешаем отправку событий в сеть только для элементов с
параметром global = 1
This commit is contained in:
@@ -96,7 +96,7 @@ void IoTItem::regEvent(String value, String consoleInfo = "") {
|
||||
// SerialPrint("i", F("=>ALLMQTT"), "Broadcast event: ");
|
||||
// }
|
||||
//отправка события другим устройствам в сети==============================
|
||||
if (jsonReadBool(settingsFlashJson, "mqttin")) {
|
||||
if (jsonReadBool(settingsFlashJson, "mqttin") && _global) {
|
||||
String json = "{}";
|
||||
jsonWriteStr_(json, "id", _id);
|
||||
jsonWriteStr_(json, "val", value);
|
||||
|
||||
Reference in New Issue
Block a user