From 961af004c0c84233625e45d8af9e552de7334e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerardo=20Marx=20Ch=C3=A1vez-Campos?= Date: Thu, 28 Jul 2022 10:02:53 -0500 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 132a780..1193e06 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ -# esp32-mqtt-emqx -Repository to test mqtt protocol +# Introduction +This code in mainly based on [this tutorial](https://www.emqx.com/en/blog/esp32-connects-to-the-free-public-mqtt-broker). + +In this project, we will connect ESP32 to a free public MQTT server operated and maintained by EMQX MQTT Cloud, and use the Arduino IDE to program the ESP32. EMQX Cloud is a secure MQTT IoT cloud service platform launched by EMQ. It provides MQTT 5.0 access service with one-stop operation and maintenance management and a unique isolation environment[^1]. + +![](https://assets.emqx.com/images/d6265585d6257fc02c722fe45888bdac.png?imageMogr2/thumbnail/1520x) + +# Arduino Configuration +It is necessary to add ESP32 library to the Arduino IDE by Click Tools -> Development Board -> Development Board Management -> Search ESP32 -> Install + +![](https://assets.emqx.com/images/99c502b39ef7d21dc75632e42aa89708.png?imageMogr2/thumbnail/1520x) + +Then, install the PubSubClient library by `Project -> Load library -> Library manager... -> Search PubSubClient -> Install PubSubClient by Nick O’Leary` + +![](ihttps://assets.emqx.com/images/cb7b0228aa91bf300eec5a725da159d3.png?imageMogr2/thumbnail/1520x) + + + + + +[^1]: https://www.emqx.com/en/blog/esp32-connects-to-the-free-public-mqtt-broker