Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.13 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.13 KB

About

carbon is an Arduino C++11 sketch for temperature, humidity, and CO2 measurement device ZG01 (MasterKit MT8060). It provides a simple program for MCU ESP8266 for collecting and sending metrics to the MQTT broker. This project is a part of health measurement system for office workers.

Features

  • WPA2 PSK support
  • MQTT authentication
  • MQTT TLS encryption
  • mDNS configuration (ZeroConf)
  • HTTP API for management
  • OTA upgrades support

MQTT message format

carbon sends MQTT message in the following format:

/devices/MT8060/<name>/<metrics> {value}

HTTP API

Read configuration from device.

curl -sL http://esp-50-02-91-48-02-68.local/config/read

Set up device configuration. It works unless device rebooted.

curl -X POST http://esp-50-02-91-48-02-68.local/config/apply -d '{"device_id": "red-room"}'

Save settings permanently.

curl -X POST http://esp-50-02-91-48-02-68.local/config/commit

License

Released under the MIT license (see LICENSE)

Sponsored by FunBox