Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port required on Client connection #45

Open
argusro opened this issue Apr 19, 2023 · 0 comments
Open

Port required on Client connection #45

argusro opened this issue Apr 19, 2023 · 0 comments

Comments

@argusro
Copy link

argusro commented Apr 19, 2023

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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant