mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
Some refactoring and improvements
This commit is contained in:
BIN
configs.tar.gz
Normal file
BIN
configs.tar.gz
Normal file
Binary file not shown.
@@ -14,7 +14,6 @@ storage:
|
||||
# data_folder_path: ./data/
|
||||
# max_file_count: 5
|
||||
# max_read_records_count: 6
|
||||
# max_records_between_fsync: 2
|
||||
# max_records_per_file: 14
|
||||
# no_records_sleep_interval: 5000
|
||||
connectors:
|
||||
|
||||
14
docker/extensions/opcua/__init__.py
Normal file
14
docker/extensions/opcua/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# Copyright 2019. ThingsBoard
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
thingsboard-client:
|
||||
thingsboard:
|
||||
host: 127.0.0.1
|
||||
port: 1883
|
||||
security:
|
||||
|
||||
@@ -48,7 +48,7 @@ class TBGatewayService:
|
||||
self.__events = []
|
||||
self.__rpc_requests_in_progress = {}
|
||||
self.__connected_devices_file = "connected_devices.json"
|
||||
self.tb_client = TBClient(config["thingsboard-client"])
|
||||
self.tb_client = TBClient(config["thingsboard"])
|
||||
self.tb_client.client.gw_set_server_side_rpc_request_handler(self.__rpc_request_handler)
|
||||
self.__implemented_connectors = {
|
||||
"mqtt": MqttConnector,
|
||||
|
||||
Reference in New Issue
Block a user