Skip to content

Send MQ2 data through an ESP8266 to a MQTT broker

Notifications You must be signed in to change notification settings

Wifsimster/mq2-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send MQ2 data through an ESP8266 to a MQTT broker

This LUA script is for ESP8266 hardware.

Description

MQTT client publising MQ2 data to a MQTT broker each time data changes.

Files

  • config.lua: Configuration variables
  • init.lua: Connect to a wifi AP and then execute main.lua file
  • main.lua: Main file

Principle

  1. Start a MQTT client and then try to connect to a MQTT broker
  2. Publish data to MQTT broker each time a data changes

Scheme

// TODO

About

Send MQ2 data through an ESP8266 to a MQTT broker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages