1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Added quality of service(qos) parameter in tb_gateway.yaml qos can be 0 or 1

This commit is contained in:
zbeacon
2020-09-01 15:17:23 +03:00
parent d095cd4b9e
commit 3c5e47050d
3 changed files with 8 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ class TBClient(threading.Thread):
self.__config = config
self.__host = config["host"]
self.__port = config.get("port", 1883)
self.__default_quality_of_service = config.get("qos",1)
self.__default_quality_of_service = config.get("qos", 1)
credentials = config["security"]
self.__min_reconnect_delay = 1
self.__tls = bool(credentials.get('tls', False) or credentials.get('caCert', False))