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

Example code not working #20

Closed
jruokolainen opened this issue Feb 12, 2021 · 4 comments
Closed

Example code not working #20

jruokolainen opened this issue Feb 12, 2021 · 4 comments

Comments

@jruokolainen
Copy link

jruokolainen commented Feb 12, 2021

Hi, I tried running the example code and got the following error:
OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 1883, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 1883)
I'd like to convert my http API to a mqtt for better IoT support but this happens.
rant it with uvicorn main:app --reload command thx in advance

Running with hyper corn gives this error:
../fastapi_mqtt/fastmqtt.py", line 78, in init
log_info = logger
NameError: name 'logger' is not defined

@jruokolainen
Copy link
Author

Actually it worked once I changed the broker host in the config, but as for improvement suggestions a topic schema automatic docs would be great

@jruokolainen
Copy link
Author

Default broker (localhost) didn't work my bad

@jruokolainen
Copy link
Author

Also needed to update mosquitto (osX) to get it working

@sabuhish
Copy link
Owner

Cool glad that you fixed it! :) It is not designed for auto docs style actually.

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

2 participants