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