You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wenfei 346cce37a8 esp32 add new file 3 days ago
..
esp8266_connect_mqtt_via_tls esp32 add new file 3 days ago
esp_connect_mqtt esp32 add new file 3 days ago
README.md esp32 add new file 3 days ago
README_ZH.md esp32 add new file 3 days ago
broker.emqx.io-ca.crt esp32 add new file 3 days ago
emqxsl-ca.crt esp32 add new file 3 days ago
esp_mqtt_led.ino esp32 add new file 3 days ago
esp_mqtt_moisture.ino esp32 add new file 3 days ago
temp_hum.ino esp32 add new file 3 days ago

README.md

ESP8266 MQTT Client Examples

In this example we provide sample code for TCP protocol connection to the MQTT Broker. For more documentation on using the ESP8266 MQTT client, see the ESP8266 pubsubclient Documentation.

Prerequisites

Installation

Sketch -> Include Library -> Manage Libraries... -> Type PubSub in Search field -> Install

Ino File

  • esp_connect_mqtt.ino: ESP8266 connects to the MQTT broker
  • esp_mqtt_led.ino: ESP8266 control led
  • temp_hum.ino: getting started with the ESP8266 and DHT11 sensor
  • esp_mqtt_moisture.ino: Soil Moisture Sensor example

Other