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
|
#pragma once
#define FW_VERSION 7
#define DEFAULT_WIFI_AP_SSID ""
#define DEFAULT_WIFI_STA_SSID ""
#define DEFAULT_WIFI_STA_PSK ""
#define DEFAULT_MQTT_SERVER "mqtt.solarmon.ru"
#define DEFAULT_MQTT_PORT 8883
#define DEFAULT_MQTT_USERNAME ""
#define DEFAULT_MQTT_PASSWORD ""
#define DEFAULT_MQTT_CLIENT_ID ""
#define DEFAULT_MQTT_CA_FINGERPRINT { \
0x0e, 0xb6, 0x3a, 0x02, 0x1f, \
0x4e, 0x1e, 0xe1, 0x6a, 0x67, \
0x62, 0xec, 0x64, 0xd4, 0x84, \
0x8a, 0xb0, 0xc9, 0x9c, 0xbb \
};
#define DEFAULT_HOME_ID "relay-node"
#define FLASH_BUTTON_PIN 0
#define ESP_LED_PIN 2
#define BOARD_LED_PIN 16
#define RELAY_PIN 5
// 12 bytes string
#define HOME_SECRET_SIZE 12
#define HOME_SECRET ""
#define MQTT_BLINK 1
#define ARRAY_SIZE(X) sizeof((X))/sizeof((X)[0])
|