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.

1.0 KiB

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