1
0
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:
zbeacon
2019-11-01 15:53:48 +02:00
parent 73b76f8a96
commit b2ebbda895
7 changed files with 16 additions and 3 deletions

BIN
configs.tar.gz Normal file

Binary file not shown.

View File

@@ -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:

View 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.

View File

@@ -1,4 +1,4 @@
thingsboard-client:
thingsboard:
host: 127.0.0.1
port: 1883
security:

View File

@@ -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,