top of page

MQTT

Week 9

I downloaded MQTTool on my computer and was able to connect to test.mosquitto.org and our class broker


I then started working with my Arduino. I uploaded the basic client example for the ArduinoMqttClient and got the following error

Screenshot 2024-11-06 at 5.25.17 PM.png

I tried looking up the error but wasn't able to find the issue. I went through the code and tried changing test.mosquitto.net to an IP address I found that was supposed to be its IP address but it didn't work. (error 5)

I tried using the example code. It worked but it just said awaiting messages and didn't receive anything.

Screenshot 2024-11-06 at 5.27.55 PM.png

During my office hours, I learned that I had to remove the username and password line for mosquitto.org since it's not required and that the IP address was not right nd I changed it back to test.mosquitto.noy

bottom of page