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

Unable to connect to broker from tdm on MacOS #22

Closed
nickidw opened this issue May 1, 2019 · 9 comments
Closed

Unable to connect to broker from tdm on MacOS #22

nickidw opened this issue May 1, 2019 · 9 comments

Comments

@nickidw
Copy link

nickidw commented May 1, 2019

I'm unable to connect to my MQTT broker (builtin HomeAssistant). TDM just says Connecting to broker, and after a few seconds Disconnected. Is there any debug switch I can enable?

@nickidw
Copy link
Author

nickidw commented May 1, 2019

I enabled logging in homeassistant and saw this:

2019-05-01 18:45:12 ERROR (MainThread) [hbmqtt.broker] Invalid connection from (client @=192.168.11.249:59459) : [MQTT-3.1.2-1] Incorrect protocol name: "MQIsdp"

@nickidw
Copy link
Author

nickidw commented May 1, 2019

Looks like I need to install mosquito rather as mqtt broker?

@andrethomas
Copy link

I use mosquito and it works fine with TDM - Have not tested with others.

@jziolkowski
Copy link
Owner

I'm developing against mosquitto as well and it works as expected.
Are you positive this error is from TDM? Because it uses Paho as MQTT backend and it uses protocol ver. 3.1. It doesn't even support ver. 3.1.2

@nickidw
Copy link
Author

nickidw commented May 6, 2019

As per original post I use the homeassistant builtin broker, and saw the errors in the homeassistant log. I only see the errors when trying to connect with TDM.

@jziolkowski
Copy link
Owner

If it's in fact TDM, then your broker is wrong. Like I said, Paho doesn't use anything > 3.1.1. Please install Mosquitto and try again.

@effelle
Copy link
Contributor

effelle commented May 6, 2019

@nickidw as a side note, please be adviced that on Home Assistant starting from release 0.92 the embedded broker has been marked as deprecated. This means bugs may not be fixed, and the functionality may be removed in a future release.

@nickidw
Copy link
Author

nickidw commented May 6, 2019 via email

@andrethomas
Copy link

Closing this as a workaround has been provided here

This issue was closed.
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

4 participants