SunFounder ESP32 Starter Kit
3. Open the code.
• Open the iot_4_mqtt.ino file located in the esp32-starter-kit-main\c\codes\
iot_4_mqtt directory, or copy the code into the Arduino IDE.
• After selecting the board (ESP32 Dev Module) and the appropriate port, click the Upload button.
• Always displaying “Unknown COMxx”?
• The PubSubClient library is used here, you can install it from the Library Manager.
4. Locate the following lines and modify them with your <SSID> and <PASSWORD>.
// Replace the next variables with your SSID/Password combination
const char* ssid = "<SSID>";
(continues on next page)
1.47. 8.4 IoT Communication with MQTT 181