thingsboard-python-client-sdk icon indicating copy to clipboard operation
thingsboard-python-client-sdk copied to clipboard

Port required on Client connection

Open argusro opened this issue 1 year ago • 0 comments

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")

argusro avatar Apr 19 '23 09:04 argusro