Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Arduino Library (AT): https://github.com/OpenDevice/ESP8266AT


Table of Contents

Introduction

This guide will show you how to connect (WiFi) devices in the OpenDevice server and send data to save in storage and further visualization in dashboards, all in real time. 

We will use the DHT22 sensor connected to the WiFi ESP8266 module to collect temperature and humidity, and send the server using the MQTT protocol.

Prerequisites

  • OpenDevice server up and running (guide)
  • Arduino IDE
  • ESP8266 module (like NodeMCU)
  • DHT22 sensor

Image Added

DHT22

NodeMCU DEVKIT 1.0.jpgImage Added

NodeMCU

Wiring

dht22_esp8266_wiring.pngImage Added


Examples:
https://github.com/OpenDevice/opendevice-lib-arduino/tree/master/examples/ESP8266WiFi
https://github.com/OpenDevice/opendevice-lib-arduino/tree/master/examples/ESP8266WiFi_AT


Device Code (Firmware)

The application that is running on ESP8266 is written using Arduino SDK which is quite simple and easy to understand.



Features:

  • AT Firmware and Stand-alone mode
  • Auto-Discovery
  • Remote wifi config
  • Remote Update


Recommended Resources: