GithubHelp home page GithubHelp logo

taaraesp-sht21-mqtt's Introduction

TaaraESP-SHT21-MQTT

TaaraESP-SHT21 WebSite

Arduino sketch for sending TaaraESP-SHT21 (ESP8266+SHT21) temperature and humidity sensor data to MQTT server unencrypted or using TLS.

The basic idea of this program is to start the board up, take the measurements as soon as possible before the board gets a chance to heat up, then establish the Wifi connection, connect to the MQTT server and send the data. After that the board goes into deep sleep (shuts down) for five minutes, only the timer keeps going. In this mode the board consumes very little power and generates almost no heat which could affect the accuracy of the temperature and humidity measurements. Waking up from deep sleep reboots the board and the program starts from the beginning.

The on-board LED on the TaaraESP-SHT21 is used for diagnostics indicating the state of the device.

Configuration

For entering the WiFi and MQTT settings go to config mode - press config button in one second AFTER powering on. The status LED should stay on. On your WiFi enabled mobile device or laptop search for WiFi AP-s with the name starting with ESP and following few numbers (module ID) - connect to it. In most cases the device is automatically redirected to the configuration web page on http://192.168.4.1 Choose the WiFi network from the list or enter it manually, enter WiFi password, MQTT server name and topic. Username and password are optional. The board should restart and enter the normal operational mode.

Normal operation

In normal operation the status LED should turn on for few seconds after every five minutes.

Diagnostics

  • LED stays on longer than 5 seconds - problem with WiFi connection or the module is in config mode. WiFi is not configured properly or not in range.
  • LED blinks once at a time - could not connect to server. Server is not configured or not accessible.
  • LED blinks twice at a time - problem with publishing.
  • LED keeps blinking - unknown error. After blinking for five minutes the board restarts.

taaraesp-sht21-mqtt's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.