|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
15 #ifndef _CONFIG_ADVANCED_h
16 #define _CONFIG_ADVANCED_h
32 #ifndef DISCONNECT_ON_DATA_ERROR
34 #endif //DISCONNECT_ON_DATA_ERROR
35 #ifndef ENABLE_REST_API
36 #define ENABLE_REST_API 1
37 #endif // ENABLE_REST_API
38 #ifndef SUPPORT_HA_DISCOVERY
39 #define SUPPORT_HA_DISCOVERY 1
40 #if SUPPORT_HA_DISCOVERY
42 #endif // SUPPORT_HA_DISCOVERY
43 #endif // SUPPORT_HA_DISCOVERY
49 #ifndef CHECK_COMM_ERRORS
51 #endif // CHECK_COMM_ERRORS
53 #ifndef USE_FLASH_INSTEAD_RTC
54 #define USE_FLASH_INSTEAD_RTC 0
55 #endif // USE_FLASH_INSTEAD_RTC
56 #ifndef HA_FIRST_DISCOVERY_DELAY
57 #define HA_FIRST_DISCOVERY_DELAY 5000
58 #endif // HA_FIRST_DISCOVERY_DELAY
59 #ifndef HA_NEXT_DISCOVERY_DELAY
60 #define HA_NEXT_DISCOVERY_DELAY 500
61 #endif // HA_NEXT_DISCOVERY_DELAY
62 #ifndef HA_FIRST_DISCOVERY_DELAY_SLEEPY
63 #define HA_FIRST_DISCOVERY_DELAY_SLEEPY 10
64 #endif // HA_FIRST_DISCOVERY_DELAY
65 #ifndef HA_NEXT_DISCOVERY_DELAY_SLEEPY
66 #define HA_NEXT_DISCOVERY_DELAY_SLEEPY 10
67 #endif // HA_NEXT_DISCOVERY_DELAY
74 #define CYPHER_TYPE ChaChaPoly
81 #define FILESYSTEM SPIFFS
85 #define USE_LITTLE_FS 1
86 #endif // USE_LITTLE_FS
90 #define FILESYSTEM LittleFS
92 #define FILESYSTEM SPIFFS
93 #endif // USE_LITTLE_FS
static const bool DISCONNECT_ON_DATA_ERROR
Activates node invalidation in case of data error.
static const uint32_t OTA_TIMEOUT_TIME
Timeout between OTA messages. In milliseconds.
const uint8_t TAG_LENGTH
Authentication tag length. For Poly1305 it is always 16.
static const size_t ENIGMAIOT_ADDR_LEN
Address size. Mac address = 6 bytes.
static const uint8_t MAX_MESSAGE_LENGTH
Maximum payload size on ESP-NOW.
static const uint8_t NODE_NAME_LENGTH
Maximum number of characters of node name.
static const int MAX_DATA_PAYLOAD_SIZE
Maximun payload size for data packets.
static const uint8_t NETWORK_NAME_LENGTH
Maximum number of characters of network name.
static const int MIN_SYNC_ACCURACY
If calculated offset absolute value is higher than this value resync is done more often....
static const uint8_t MAX_DATA_PAYLOAD_LENGTH
Maximum EnigmaIOT user data payload size.
static const int OTA_GW_TIMEOUT
OTA mode timeout. In OTA mode all data messages are ignored.
const uint8_t AAD_LENGTH
Number of bytes from last part of key that will be used for additional authenticated data.
static const bool CHECK_COMM_ERRORS
Try to reconnect in case of communication errors.
static const uint8_t COMMS_QUEUE_SIZE
static const char BROADCAST_NONE_NAME[]
Name to reference broadcast node.
const uint8_t KEY_LENGTH
Key length used by selected crypto algorythm. The only tested value is 32. Change it only if you know...
static const uint8_t BROADCAST_ADDRESS[]
Broadcast address.
static const uint32_t RTC_ADDRESS
RTC memory address where to store context. Modify it if you need place to store your own data during ...
const int WEB_API_PORT
TCP port where Web API will listen through.
const uint8_t IV_LENGTH
Initalization vector length used by selected crypto algorythm.
static const char HA_DISCOVERY_PREFIX[]
Used to build HomeAssistant discovery message topic.