Skip to content

Send vibration data through an ESP8266 to a MQTT broker 📈

Notifications You must be signed in to change notification settings

Wifsimster/sw420-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vibration sensor - SW420

This LUA script is for ESP8266 hardware.

Description

Send SW420 data (level and amplitude) through an ESP8266 to a MQTT broker.

Files

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

Principle

  1. Connect to a wifi AP
  2. Start a MQTT client and try to connect to a MQTT broker
  3. Publish data (level and amplitude) to MQTT broker each time GPIO changes level

Scheme

scheme

About

Send vibration data through an ESP8266 to a MQTT broker 📈

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages