Thingsboard Python SDK seem to have bug; subcription for device under a gateway is not reliable.
Step to reproduce :
- Connect to Thingsboard.cloud as a gateway with the TBGatewayMqttClient class.
- Connect a device with the method "gw_connect_device".
- Subscript to all attribute with method "gw_subscribe_to_all_device_attributes".
- Test that you receive attribute update. This should work.
- Wait some time. Typically, it's under 5 minutes.
- Test again attribute update. Callback defined in "gw_subscribe_to_all_device_attributes" will not receive any update.
I test it under python 3.7 and 3.11.