File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
examples/ESP32_MQTTClient_Example Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11/*
2- Name: ESP32_MQTTClient_Example.ino
3- Created: 1/1/2025 6:43:43 PM
4- Author: Marek Buriak
5- Description: In this example, ESP32 connects to wi-fi and then to MQTT broker.
6- It then publishes to lastWillTopic, subscribes to testTopic and publishes to testTopic.
7- That triggers onMqttMessageReceived handler. After a few seconds it unsubscribes from testTopic,
8- stops the client and disconnects from broker.
9- There are other event handlers triggered during the above flow. The expected Serial output
10- is at the bottom of this file.
2+ Name: ESP32_MQTTClient_Example.ino
3+ Created: 1/1/2025 6:43:43 PM
4+ Author: Marek Buriak
5+ Description: In this example, ESP32 connects to wi-fi and then to MQTT broker.
6+ It then publishes to lastWillTopic, subscribes to testTopic and publishes to testTopic.
7+ That triggers onMqttMessageReceived handler. After a few seconds it unsubscribes from testTopic,
8+ stops the client and disconnects from broker.
9+ There are other event handlers triggered during the above flow. The expected Serial output
10+ is at the bottom of this file.
1111*/
1212
1313#include " Arduino.h"
You can’t perform that action at this time.
0 commit comments