-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.h.local
31 lines (25 loc) · 892 Bytes
/
Config.h.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Print debug logs to Serial {TRUE/FALSE}
#define DEBUG TRUE
// Enable MHZ-19B sensor
#define CO2_SENSOR 1
// Configure MHZ-19B serial connection
#define MHZ_TX_PIN D5
#define MHZ_RX_PIN D6
// WiFi Network configuration
#define STAHOSTNAME "esp8266-climate-office"
#define STASSID ""
#define STAPSK ""
#define WIFI_RECONNECT_ON_FAILURE_MS 500
// MQTT server configuration
#define MQTTSERVER "192.168.0.54"
#define MQTTPORT 1883
#define MQTT_CLIENT_NAME "arduino_climate_office"
#define CONNECT_MQTT_TIMEOUT_MS 5e3
#define MQTT_TEMPERATURE_TOPIC "climate/room/office/temperature"
#define MQTT_HUMIDITY_TOPIC "climate/room/office/humidity"
#define MQTT_PRESSURE_TOPIC "climate/room/office/pressure"
#define MQTT_CO2_TOPIC "climate/room/bedroom/co2"
#define SERIAL_SPEED_BAUD 115200
#define SERIAL_TIMEOUT_MS 200
// Updates Sensor readings every X ms seconds
#define READ_INTERVAL_MS 10e3