thingsboard / thingsboard-python-client-sdk

ThingsBoard client Python SDK
https://thingsboard.io
Other
113 stars 70 forks source link

AttributeError: 'TBGatewayMqttClient' object has no attribute '_add_timeout' #75

Closed MohamedKHALILRouissi closed 2 weeks ago

MohamedKHALILRouissi commented 1 month ago

Waiting for connection to be established before sending data to ThingsBoard! Traceback (most recent call last): File "/home/khalil/test/gateway/tb_mqtt_sdk/test.py", line 13, in gateway.gw_request_shared_attributes("SN-001", ["ruleChain"], callback) File "/home/khalil/test/gateway/tb_mqtt_sdk/tb_gateway_mqtt.py", line 191, in gw_request_shared_attributes return self.request_attributes(device_name, keys, callback, False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/khalil/test/gateway/tb_mqtt_sdk/tb_gateway_mqtt.py", line 173, in request_attributes self._add_timeout(attr_request_number, ts_in_millis + 30000) ^^^^^^^^^^^^^^^^^ AttributeError: 'TBGatewayMqttClient' object has no attribute '_add_timeout'

MohamedKHALILRouissi commented 1 month ago

am always getting this error when trying to request attribute

MohamedKHALILRouissi commented 1 month ago

this also fail at the thingsboard-gateway with mqtt connector requesting device attribtue