Skip to content

sheffieldhackspace/hackspace-sensing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackspace Sensing

Generic ESP8266 code for sensors that push to MQTT.

uses this MQTT library: https://github.com/knolleary/pubsubclient

See sensor information: https://wiki.sheffieldhackspace.org.uk/members/projects/monitoring

picture of ESP8266 and SCD40 sensors on a breadboard attached to 3-pin power plug via USB

Build using PlatformIO

First, edit secrets.h to make sure you're using the correct MQTT topic etc.

Then, something like:

# test flashing
pio run -e testblink -t upload
# test WiFi and MQTT 
pio run -e testmqttpub -t upload

# upload specific firmware (e.g., SCD40)
pio run -e scd40-main -t upload

# connect to serial port
pio device monitor

listen to MQTT

listen to MQTT messages with something like this:

mosquitto_sub -h mosquitto.shhm.uk -t '#' -v

About

Generic ESP8266 code for sensors that push to MQTT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published