 |
EnigmaIOT
0.9.3
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
32 #ifndef DISCONNECT_ON_DATA_ERROR
34 #endif //DISCONNECT_ON_DATA_ERROR
35 #ifndef CONNECT_TO_WIFI_AP
36 #define CONNECT_TO_WIFI_AP 1
37 #endif //CONNECT_TO_WIFI_AP
51 #ifndef CHECK_COMM_ERRORS
62 #define CYPHER_TYPE ChaChaPoly
65 #define DEBUG_ESP_PORT Serial
67 #define DEBUG_LEVEL WARN
static const char ENIGMAIOT_PROT_VERS[]
EnitmaIoT Version.
static const unsigned int MAX_NODE_INACTIVITY
After this time (in ms) a node is marked as gone.
static const time_t IDENTIFY_TIMEOUT
How long LED will be flashing during identification.
static const int MAX_DATA_PAYLOAD_SIZE
Maximun payload size for data packets.
static const int OTA_GW_TIMEOUT
OTA mode timeout. In OTA mode all data messages are ignored.
static const uint8_t COMM_ERRORS_BEFORE_SCAN
Node will search for a gateway if this number of communication errors have happened.
static const size_t ENIGMAIOT_ADDR_LEN
Address size. Mac address = 6 bytes.
static const uint32_t OTA_TIMEOUT_TIME
Timeout between OTA messages. In milliseconds.
static const uint8_t NODE_NAME_LENGTH
Maximum number of characters of node name.
static const int RATE_AVE_ORDER
Message rate filter order.
const uint8_t IV_LENGTH
Initalization vector length used by selected crypto algorythm.
static const uint32_t TIME_SYNC_PERIOD
Period of clock synchronization request.
static const int MIN_SYNC_ACCURACY
If calculated offset absolute value is higher than this value resync is done more often.
static const bool DISCONNECT_ON_DATA_ERROR
Activates node invalidation in case of data error.
static const unsigned int QUICK_SYNC_TIME
Period of clock synchronization request in case of resync is needed.
const uint8_t AAD_LENGTH
Number of bytes from last part of key that will be used for additional authenticated data.
static const int NUM_NODES
Maximum number of nodes that this gateway can handle.
static const uint32_t PRE_REG_DELAY
Time to wait before registration so that other nodes have time to communicate. Real delay is a random...
static const uint32_t POST_REG_DELAY
Time to waif before sending data after registration so that other nodes have time to finish their reg...
static const uint8_t MAX_MESSAGE_LENGTH
Maximum payload size on ESP-NOW.
static const unsigned int MAX_KEY_VALIDITY
After this time (in ms) a nude is unregistered.
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 ...
static const int16_t RECONNECTION_PERIOD
Time to retry Gateway connection.
static const uint16_t DOWNLINK_WAIT_TIME
Time to wait for downlink message before sleep. Setting less than 180 ms causes ESP-NOW errors due to...
static const int MAX_INPUT_QUEUE_SIZE
Input queue size for EnigmaIOT messages. Acts as a buffer to be able to handle messages during high l...
static const uint8_t DEFAULT_CHANNEL
WiFi channel to be used on ESP-NOW.
static const uint8_t NETWORK_NAME_LENGTH
Maximum number of characters of network name.
static const bool CHECK_COMM_ERRORS
Try to reconnect in case of communication errors.
static const int RESET_PIN_DURATION
Number of milliseconds that reset pin has to be grounded to produce a configuration reset.
static const uint32_t FLASH_LED_TIME
Time that led keeps on during flash in ms.
static const size_t MAX_MQTT_QUEUE_SIZE
Maximum number of MQTT messages to be sent.
static const uint32_t DEFAULT_SLEEP_TIME
Default sleep time if it was not set.
const uint8_t KEY_LENGTH
Key length used by selected crypto algorythm. The only tested value is 32. Change it only if you know...
const uint8_t TAG_LENGTH
Authentication tag length. For Poly1305 it is always 16.