-
• #2
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
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!