mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-07 14:38:16 +08:00
Paho MQTT demo
This example shows how to use the Eclipse Paho MQTT as an example of ESP8266 RTOS SDK. In this demo, the following functions can be realized: MQTT publish, subscribe and ping.
-
Config SSID and PASSWORD of the Wi-Fi AP to be connected in user_config.h
-
Config MQTT Broker to be connected in MQTTEcho.c
-
Export SDK_PATH and BIN_PATH, run gen_misc.sh to compile, then download and run the demo
-
MQTT client will connect with the MQTT Broker, subscribe to the topic "ESP8266/sample/sub", and will publish messages to the topic "ESP8266/sample/pub"