thingsboard-python-client-sdk
thingsboard-python-client-sdk copied to clipboard
Port required on Client connection
I've just installed today this library but when trying to run I was getting an error:
File "/home/alr/.local/lib/python3.8/site-packages/paho/mqtt/client.py", line 979, in connect_async
if port <= 0:
TypeError: '<=' not supported between instances of 'str' and 'int'
I solved adding the port information to the connection:
client = TBDeviceMqttClient("127.0.0.1", 1883, "token")