Hi Rui and Sara,
I bought your courses because I need resources in getting me running with the esp32 MQTT communication. I have setup already a mosquito broker in my Raspberry Pi but also have user and password secured mosquito. Where would I enter those credentials into the arduino code if my esp32 would be subscribing to a topic? Can you help me with this?
Greatly appreciate it, Michael.
PS, It would be really great if you can do a short blog or tutorial on using Node-Red, to send a message to an esp32 subscribed topic… Or maybe an example code?
Hi Michael.
Add the following lines to set your mqtt brokerubroker and password.
mqttClient.setCredentials( "username", "password");
Answering your second question.
Take a look at the ESP32 course, last unit in the mqtt module. It shows what you’re looking for. As an example, we’re controlling an LED of the ESP32.
I hope this helps.
Regards,
Sara