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