-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDeviceConfig.hpp.template
More file actions
39 lines (27 loc) · 1005 Bytes
/
DeviceConfig.hpp.template
File metadata and controls
39 lines (27 loc) · 1005 Bytes
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
32
33
34
35
36
37
38
39
#define DEVICE_NAME "UniqueDeviceName"
// ------ WI-FI ------
// Enables or disables Wi-Fi
#define ENABLE_WI_FI true
// If Wi-Fi is enabled, add Wi-Fi credentials
#define WI_FI_SSID "SSID"
#define WI_FI_PASSWORD "PASSWORD"
// ------ MQTT ------
// Enables or disables MQTT
#define ENABLE_MQTT true
// If MQTT is enabled, fill out information below
// The IP address of your MQTT broker
#define MQTT_ADDR IPAddress(127, 0, 0, 1)
// Enables or disables MQTT authentication
#define MQTT_AUTHENTICATION false
// If Authentication is enabled, add MQTT credentials
#define MQTT_USERNAME "REPLACE_WITH_YOUR_MQTT_USERNAME"
#define MQTT_PASSWORD "REPLACE_WITH_YOUR_MQTT_PASSWORD"
// ------ These values can be left alone ------
// Frequency in seconds to update the display
const unsigned int DISPLAY_INTERVAL = 5;
// Set sensors that you do not use to false
#define HAS_SHT true
#define HAS_PM2_5 true
#define HAS_CO2 true
// Amount to subtract from the temperature reading.
float TEMP_OFFSET = 1.0;