-
Notifications
You must be signed in to change notification settings - Fork 13
/
local_config.h.in
61 lines (48 loc) · 1.77 KB
/
local_config.h.in
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copy this file to local_config.h and edit appropriately
//
// WiFi settings
#define CONFIG_WIFI_SSID "mywifi"
#define CONFIG_WIFI_PASS "mywifipassword"
// Operational settings
// EBus device address for BaiMon (master)
#define CONFIG_EBUS_ADDR_HOST 0
// EBus device address for boiler (master)
#define CONFIG_EBUS_ADDR_BOILER 3
// EBus device poll intervals (seconds)
// EBus poll interval when last command succeeded
#define CONFIG_POLL_INTERVAL_NORM 600
// EBus poll interval whan last command failed
#define CONFIG_POLL_INTERVAL_FAIL 60
// Delay before first poll after detecting EBus presense
#define CONFIG_FIRST_POLL_DELAY 5
// Narodmon.ru settings
// Enable server data upload
#define CONFIG_SERVER_UPLOAD_ENABLE 1
// Use MQTT instead of TCP for server data upload
#define CONFIG_SERVER_USE_MQTT 0
// Narodmon device ID (device MAC address)
// should not be too long, consider ServerUploadTcp buffer limit
#define CONFIG_SERVER_DEVICE_ID "00:00:00:00:00:00"
// Send interval (seconds)
#define CONFIG_SERVER_SEND_INTERVAL 600
// Startup delay (seconds) to avoid violating narodmon max data rate
#define CONFIG_SERVER_START_DELAY 400
// TCP protocol settings
// TCP server host name
#define CONFIG_TCP_HOST "narodmon.ru"
// TCP server port
#define CONFIG_TCP_PORT 8283
// TCP server reply wait timeout, ms
#define CONFIG_TCP_REPLY_TIMEOUT 5000
// MQTT protocol settings
// MQTT server host name
#define CONFIG_MQTT_HOST "narodmon.ru"
// MQTT server port
#define CONFIG_MQTT_PORT 1883
// MQTT user name and password
#define CONFIG_MQTT_USERNAME "my_login"
#define CONFIG_MQTT_PASSWORD "my_password"
// MQTT client ID (narodmon: device MAC address)
#define CONFIG_MQTT_CLIENT_ID CONFIG_SERVER_DEVICE_ID
// MQTT topic name (narodmon: user/devname)
#define CONFIG_MQTT_TOPIC "user/device"