SunFounder ESP32 Starter Kit
3. Publish a message in the Topic you have subscribed to. In this project, you can publish on or off to control your
LED.
Message Publication to MQTT
We can also utilize the code to publish information to the Topic. In this demonstration, we have coded a feature that
sends the temperature measured by the thermistor to the Topic when you press the button.
1. Click on Add New Topic Subscription.
184 Chapter 1. For Arduino User