How to connect paho-mqtt project to a mosquitto broker from an esp32 board

If I start a mosquitto broker locally on my machine, how can I connect to it from an esp32 board? I have been stuck on this problem for more than a week! I can connect the board to a WiFi network, however, unable to connect it to an MQTT broker. Has anyone ever tried to make similar projects? ( I build my project from the paho-mqtt example since it has a fully functional network stack ) Thank you!

Hi, did you manage to get this working after all? When I did the mqtt paho (not the mqtt-sn) I had a lot of problems trying to make it work…

Nah, sorry to hear about that but I didn’t manage to make it work either…

1 Like