Firmware for ESP32 controllers.
- WiFi: Connect to WiFi networks.
- MQTT: Publish and subscribe to MQTT topics.
- ESP32: Ensure you have an ESP32 board.
- PlatformIO: Install PlatformIO IDE or use the command line interface.
Edit the src/main.cpp file to set your WiFi credentials:
const char* ssid = "your-SSID";
const char* password = "your-PASSWORD";Edit the src/main.cpp file to set your MQTT broker details:
const char* mqtt_server = "broker.hivemq.com";Edit the src/main.cpp file to set your GPIO pins:
# define DHTPIN D2
# define DHTTYPE DHT22Edit the src/main.cpp file to set your sensor type:
String clientID = "ESP32Client";| clientID | location |
|---|---|
| ESP32Client-0001 | Living Room |
| ESP32Client-0002 | Bedroom |