SunFounder ESP32 Starter Kit
1.47 8.4 IoT Communication with MQTT
This project focuses on utilizing MQTT, a popular communication protocol in the Internet of Things (IoT) domain.
MQTT enables IoT devices to exchange data using a publish/subscribe model, where devices communicate through
topics.
In this project, we explore the implementation of MQTT by building a circuit that includes an LED, a button, and a
thermistor. The ESP32-WROOM-32E microcontroller is used to establish a connection to WiFi and communicate with
an MQTT broker. The code allows the microcontroller to subscribe to specific topics, receive messages, and control
the LED based on the received information. Additionally, the project demonstrates publishing temperature data from
the thermistor to a designated topic when the button is pressed.
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
ESP32 Starter Kit 320+
You can also buy them separately from the links below.
178 Chapter 1. For Arduino User