This LUA script is for ESP8266 hardware.
Read BMP180 data (temperature and pression).
Web server waiting for request to send data.
config.lua
: Configuration variablesinit.lua
: Connect to a wifi AP and then execute main.lua filemain.lua
: Main filebmp180.lua
: BMP180 library
- Start a MQTT client and then try to connect to a MQTT broker
- If temperature or pression change value, publish data to broker