Skip to content

Send YL-69 data through an ESP8266 to a MQTT broker ⛲

Notifications You must be signed in to change notification settings

Wifsimster/soil-moisture-mqtt

Repository files navigation

Send soil moisture value to a MQTT broker

This LUA script is for ESP8266 hardware.

Description

Read soil moisture sensor YL-69.

Send data every 5 secs to MQTT broker.

Files

  • config.lua: Configuration variables
  • init.lua: Connect to a wifi AP and then execute main.lua file
  • main.lua: Main file
  • ntp.lua: Network time protocol lib

Principle

  1. Start a MQTT client and then try to connect to a MQTT broker
  2. Publish data every 5 secs to broker

Scheme

scheme scheme

The box is avaible to print here : http://www.thingiverse.com/thing:1660436

About

Send YL-69 data through an ESP8266 to a MQTT broker ⛲

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages