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.
|
|
3 days ago | |
|---|---|---|
| .. | ||
| esp8266_connect_mqtt_via_tls | 3 days ago | |
| esp_connect_mqtt | 3 days ago | |
| README.md | 3 days ago | |
| README_ZH.md | 3 days ago | |
| broker.emqx.io-ca.crt | 3 days ago | |
| emqxsl-ca.crt | 3 days ago | |
| esp_mqtt_led.ino | 3 days ago | |
| esp_mqtt_moisture.ino | 3 days ago | |
| temp_hum.ino | 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
- Arduino ESP8266 development board management address: http://arduino.esp8266.com/stable/package_esp8266com_index.json
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