See related MQTT project for InfluxDB time series data records: Project Repo
Repository of various Arduino projects mostly written for home automation.
Project | Description |
---|---|
DHT_LDR | Read DHT11 sensor for temperature and humidity readings. Read Photosensor and control power relay based on cutoff threshold. Report readings to MQTT broker |
H-PI | Read capacitive soil moisture sensors and control pump actuators. Report moisture % and pump statuses to MQTT broker. |
ESP32 board support
https://dl.espressif.com/dl/package_esp32_index.json
https://github.com/bblanchon/ArduinoJson
https://github.com/arduino-libraries/NTPClient
https://github.com/knolleary/pubsubclient
PubSubClient.h
// MQTT_MAX_PACKET_SIZE : Maximum packet size. Override with setBufferSize().
#ifndef MQTT_MAX_PACKET_SIZE
#define MQTT_MAX_PACKET_SIZE 1024
#endif
Reference for state managment in industrial control systems
https://en.wikipedia.org/wiki/Finite-state_machine
https://github.com/adafruit/DHT-sensor-library
Dependency: Adafruit Unified Sensor Driver
https://github.com/adafruit/Adafruit_Sensor