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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user