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

Fixed request_attributes method for devices

This commit is contained in:
samson0v
2022-04-13 16:01:48 +03:00
parent d4d590d691
commit 80d5fe9a98

View File

@@ -111,13 +111,10 @@ class TBGatewayMqttClient(TBDeviceMqttClient):
if not keys:
log.error("There are no keys to request")
return False
keys_str = ""
for key in keys:
keys_str += key + ","
keys_str = keys_str[:len(keys_str) - 1]
ts_in_millis = int(round(time.time() * 1000))
attr_request_number = self._add_attr_request_callback(callback)
msg = {"key": keys_str,
msg = {"keys": keys,
"device": device,
"client": type_is_client,
"id": attr_request_number}