This LUA script is for ESP8266 hardware.
Read soil moisture sensor YL-69.
Send data every 5 secs to MQTT broker.
config.lua
: Configuration variablesinit.lua
: Connect to a wifi AP and then execute main.lua filemain.lua
: Main filentp.lua
: Network time protocol lib
- Start a MQTT client and then try to connect to a MQTT broker
- Publish data every 5 secs to broker
The box is avaible to print here : http://www.thingiverse.com/thing:1660436