Skip to content

esp8266 sketch to read sensor data and push it over mqtt

Notifications You must be signed in to change notification settings

seco/SensorUploader

Repository files navigation

SensorUploader

esp8266 sketch to read sensor data (for now that's only BMP085 - pressure, temperature and DHT22 - temperature and humidity) and to push that over mqtt to a server.

My test server is mosquitto + mongodb + nginx + php (to display aggregated data) running on PI 2.

MQTT message can be single json containing all the sensors data or individual messages for each value (configurable).

Serial port is used to configure parameters - wifi connection credentials, mqtt server name and credentials.

Display - sample script to display data

NodeJSMongoMQTT - sample nodejs script forwarding messages to mongodb collection, and able to forward messages to external web server.

esp board library used - 2.3.0-rc2

About

esp8266 sketch to read sensor data and push it over mqtt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published