ESPresense/Settings.h

30 lines
1.1 KiB
C

//Replace with your Wifi SSID; example: #define ssid "MyWifi"
#define ssid "$SSID$"
//Replace with your Wifi password; example: #define password "12345678"
#define password "$WIFI_PASSWORD$"
//Replace with a human-friendly host name. Must not contain spaces or special characters
#define hostname "esp32_room_presence"
//Replace with your MQTT Broker address; example: #define mqttHost IPAddress(192, 168, 1, 195)
#define mqttHost IPAddress(192, 168, 1, 195)
//Replace with your MQTT Broker port; example: #define mqttPort 1883
#define mqttPort $MQTT_PORT$
//Replace with your MQTT Broker user; example: #define mqttUser "homeassistant"
#define mqttUser "$MQTT_USER$"
//Replace with your MQTT Broker password; example: #define mqttPassword "12345678"
#define mqttPassword "$MQTT_PASSWORD"
//Replace with the room name where the node will be placed; example: #define room "living-room"
#define room "$ROOM_NAME$"
//Define the base topic for room detection. Usually "room_presence"
#define channel "room_presence"
//Define the interval in seconds between scans
#define scanInterval 15