From ea790ac98a623358d8436f5f00ff40c33686a816 Mon Sep 17 00:00:00 2001 From: samson0v Date: Wed, 18 Sep 2024 10:55:51 +0300 Subject: [PATCH] Injected sendDataOnlyOnChange param to the higher level --- .../tb_utility/tb_gateway_remote_configurator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py b/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py index c0e24f2f..44bcd049 100644 --- a/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py +++ b/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py @@ -647,6 +647,9 @@ def _handle_connector_configuration_update(self, config): self._gateway.load_connectors(self._get_general_config_in_local_format()) self._gateway.connect_with_connectors() + # can be removed in the future versions: + config['sendDataOnlyOnChange'] = config['configurationJson'].get('sendDataOnlyOnChange', False) + for (device_name, device_config) in list(self._gateway.get_devices().items()): if (connector_id == device_config.get('connector').get_id() and self._gateway.available_connectors_by_id.get(connector_id) is not None):