EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Public Attributes | List of all members
rtcmem_data_t Struct Reference

Context data to be stored con persistent storage to be used after wake from sleep mode. More...

#include <EnigmaIOTNode.h>

Public Attributes

uint32_t crc32
 
uint8_t nodeKey [KEY_LENGTH]
 
uint16_t nodeId
 
uint8_t channel
 
uint8_t gateway [ENIGMAIOT_ADDR_LEN]
 
int8_t rssi
 
uint8_t networkKey [KEY_LENGTH]
 
char networkName [NETWORK_NAME_LENGTH]
 
bool sleepy
 
uint32_t sleepTime
 
char nodeName [NODE_NAME_LENGTH+1]
 
uint8_t commErrors
 
bool nodeKeyValid
 
uint8_t broadcastKey [KEY_LENGTH]
 
bool broadcastKeyValid
 
bool broadcastKeyRequested
 
status_t nodeRegisterStatus
 
uint16_t lastMessageCounter
 
uint16_t lastControlCounter
 
uint16_t lastDownlinkMsgCounter
 

Detailed Description

Context data to be stored con persistent storage to be used after wake from sleep mode.

Definition at line 89 of file EnigmaIOTNode.h.

Member Data Documentation

◆ broadcastKey

uint8_t rtcmem_data_t::broadcastKey[KEY_LENGTH]

Key to encrypt broadcast messages

Definition at line 104 of file EnigmaIOTNode.h.

◆ broadcastKeyRequested

bool rtcmem_data_t::broadcastKeyRequested

true if broadcast key has been requested to gateway

Definition at line 106 of file EnigmaIOTNode.h.

◆ broadcastKeyValid

bool rtcmem_data_t::broadcastKeyValid

true if broadcast key has been received from gateway

Definition at line 105 of file EnigmaIOTNode.h.

◆ channel

uint8_t rtcmem_data_t::channel

WiFi channel used on ESP-NOW communication

Definition at line 93 of file EnigmaIOTNode.h.

◆ commErrors

uint8_t rtcmem_data_t::commErrors

number of non acknowledged packets. May mean that gateway is not available or its channel has changed. This is used to retrigger Gateway scan

Definition at line 101 of file EnigmaIOTNode.h.

◆ crc32

uint32_t rtcmem_data_t::crc32

CRC to check RTC data integrity

Definition at line 90 of file EnigmaIOTNode.h.

◆ gateway

uint8_t rtcmem_data_t::gateway[ENIGMAIOT_ADDR_LEN]

Gateway address

Definition at line 94 of file EnigmaIOTNode.h.

◆ lastControlCounter

uint16_t rtcmem_data_t::lastControlCounter

Control message last counter

Definition at line 109 of file EnigmaIOTNode.h.

◆ lastDownlinkMsgCounter

uint16_t rtcmem_data_t::lastDownlinkMsgCounter

Downlink message last counter

Definition at line 110 of file EnigmaIOTNode.h.

◆ lastMessageCounter

uint16_t rtcmem_data_t::lastMessageCounter

Node last message counter

Definition at line 108 of file EnigmaIOTNode.h.

◆ networkKey

uint8_t rtcmem_data_t::networkKey[KEY_LENGTH]

Network key to protect key agreement

Definition at line 96 of file EnigmaIOTNode.h.

◆ networkName

char rtcmem_data_t::networkName[NETWORK_NAME_LENGTH]

Network name. Used to search gateway peer

Definition at line 97 of file EnigmaIOTNode.h.

◆ nodeId

uint16_t rtcmem_data_t::nodeId

Node identification

Definition at line 92 of file EnigmaIOTNode.h.

◆ nodeKey

uint8_t rtcmem_data_t::nodeKey[KEY_LENGTH]

Node shared key

Definition at line 91 of file EnigmaIOTNode.h.

◆ nodeKeyValid

bool rtcmem_data_t::nodeKeyValid

true if key has been negotiated successfully

Definition at line 103 of file EnigmaIOTNode.h.

◆ nodeName

char rtcmem_data_t::nodeName[NODE_NAME_LENGTH+1]

Node name. Use as a human friendly name to avoid use of numeric address

Definition at line 100 of file EnigmaIOTNode.h.

◆ nodeRegisterStatus

status_t rtcmem_data_t::nodeRegisterStatus

Node registration status

Definition at line 107 of file EnigmaIOTNode.h.

◆ rssi

int8_t rtcmem_data_t::rssi

Gateway signal strength

Definition at line 95 of file EnigmaIOTNode.h.

◆ sleepTime

uint32_t rtcmem_data_t::sleepTime

Time to sleep between sensor data delivery

Definition at line 99 of file EnigmaIOTNode.h.

◆ sleepy

bool rtcmem_data_t::sleepy

Sleepy node

Definition at line 98 of file EnigmaIOTNode.h.


The documentation for this struct was generated from the following file: