-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathexample.config.h
46 lines (36 loc) · 1.34 KB
/
example.config.h
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
40
41
42
43
44
45
46
///////////////////////////////////////////////////////////////////////////
// CONFIGURATION - SOFTWARE
///////////////////////////////////////////////////////////////////////////
#define NB_OF_BLE_TRACKED_DEVICES 1
BLETrackedDevice BLETrackedDevices[NB_OF_BLE_TRACKED_DEVICES] = {
{"11:22:33:44:55:66", false, 0, false, {0}}
};
#define BLE_SCANNING_PERIOD 5
#define MAX_NON_ADV_PERIOD 10000
// Location of the BLE scanner
#define LOCATION "bedroom"
// Debug output
//#define DEBUG_SERIAL
// Wi-Fi credentials
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
// Over-the-Air update
// Not implemented yet
//#define OTA
//#define OTA_HOSTNAME "" // hostname esp8266-[ChipID] by default
//#define OTA_PASSWORD "" // no password by default
//#define OTA_PORT 8266 // port 8266 by default
// MQTT
#define MQTT_USERNAME ""
#define MQTT_PASSWORD ""
#define MQTT_SERVER ""
#define MQTT_SERVER_PORT 1883
#define MQTT_CONNECTION_TIMEOUT 5000 // [ms]
// MQTT availability: available/unavailable
#define MQTT_AVAILABILITY_TOPIC_TEMPLATE "%s/availability"
// MQTT binary sensor: <CHIP_ID>/sensor/<LOCATION>/<BLE_ADDRESS>
#define MQTT_SENSOR_TOPIC_TEMPLATE "%s/sensor/%s/%s/state"
#define MQTT_PAYLOAD_ON "ON"
#define MQTT_PAYLOAD_OFF "OFF"
#define MQTT_PAYLOAD_AVAILABLE "online"
#define MQTT_PAYLOAD_UNAVAILABLE "offline"