Connection to Homeassistant MQTT Broker refused #7479
Unanswered
espruino-discuss3
asked this question in
ESP32
Replies: 1 comment
-
Posted at 2023-12-07 by @gfwilliams Did you validate while running on the same computer? I know on Raspberry Pi for the past few years mosquitto has been set up so that it'll only accept local connections to itself by default, and you have to manually configure it to allow connections from outside |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-11-30 by GhosTz
I've setup an mosquitto mqtt broker on my homeassist. I now want to have my esp32 connect to it and afterwards control a lamp over BLE.
I'm currently already stuck trying to connect to my homeassistant mqtt broker. I've validated the broker is working with mqtt.fx by subscribing to the same ip/topic with the same credentials. When I now try to subscribe to the same broker I always get the following error:
This is how my code looks like:
I am wondering if I am missing something here?
Also when I flash to my esp32 with the Espruino IDE, the console logs are not shown because wifi seems to still be connected after te restart. So to validate my code I always call
wifi.disconnect();
.Would really appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions