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:
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();.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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!