Skip to content

christoff-linde/pih-esp

Repository files navigation

pih-esp

Firmware for ESP32 controllers.

Features

  • WiFi: Connect to WiFi networks.
  • MQTT: Publish and subscribe to MQTT topics.

Pre-requisites

  • ESP32: Ensure you have an ESP32 board.
  • PlatformIO: Install PlatformIO IDE or use the command line interface.

Configuration

WiFi Configuration

Edit the src/main.cpp file to set your WiFi credentials:

const char* ssid = "your-SSID";
const char* password = "your-PASSWORD";

MQTT Configuration

Edit the src/main.cpp file to set your MQTT broker details:

const char* mqtt_server = "broker.hivemq.com";

GPIO Configuration

Edit the src/main.cpp file to set your GPIO pins:

# define DHTPIN D2
# define DHTTYPE DHT22

Sensor Configuration

Edit the src/main.cpp file to set your sensor type:

String clientID = "ESP32Client";

Sensor Map

clientID location
ESP32Client-0001 Living Room
ESP32Client-0002 Bedroom

About

ESP32 Firware for PIH

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages