CloudConfigRK
Data Fields
CloudConfigDataHeader Struct Reference

Header for structure containing saved data used for retained memory, files, and EEPROM. More...

#include <CloudConfigRK.h>

Data Fields

uint32_t magic
 Magic bytes, CloudConfig::DATA_MAGIC. More...
 
uint8_t headerSize
 Size of this header, sizeof(CloudConfigDataHeader)
 
uint8_t flags
 Flag bits, not currently used. Currently 0.
 
uint16_t dataSize
 Size of this data after the header (not including the size of the header) More...
 
long lastCheck
 Last time the data was checked from Time.now() (seconds past January 1, 1970, UTC).
 
uint32_t reserved2
 Reserved for future use, currently 0.
 
uint32_t reserved1
 Reserved for future use, currently 0.
 

Detailed Description

Header for structure containing saved data used for retained memory, files, and EEPROM.

It's currently 20 bytes plus the size of the JSON configuration data that goes after it.

Field Documentation

◆ dataSize

uint16_t CloudConfigDataHeader::dataSize

Size of this data after the header (not including the size of the header)

Used to detect when it changes to invalidate the old version. When using the CloudConfigData template, this is SIZE.

◆ magic

uint32_t CloudConfigDataHeader::magic

Magic bytes, CloudConfig::DATA_MAGIC.

This value (0x7251dd53) is used to see if the structure has been initialized


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