Zigbee Protocol Controller 1.6.0

Allows to configure how the attribute store behaves. More...

Functions

void attribute_store_configuration_set_type_validation (bool enabled)
 Configures if the Attribute Store will use the known type registration to validate any writing to node values and adding nodes under parents. More...
 
void attribute_store_configuration_set_auto_save_safety_interval (unsigned int seconds)
 Configures if the Attribute Store will save changes to the datastore following a periodic interval as a backup if too many updates are performed. More...
 
void attribute_store_configuration_set_auto_save_cooldown_interval (unsigned int seconds)
 Configures a delay after Attribute Store updates before saving changes to the datastore. More...
 

Detailed Description

Allows to configure how the attribute store behaves.

This modules provides functions to change runtime the behavior/configuration of the Attribute Store.

Function Documentation

◆ attribute_store_configuration_set_auto_save_cooldown_interval()

void attribute_store_configuration_set_auto_save_cooldown_interval ( unsigned int  seconds)

Configures a delay after Attribute Store updates before saving changes to the datastore.

The 0 cooldown value will slow down dramatically the Attribute Store, but ensure accurate data after a non-graceful shutdown/teardown, as everything will be saved sequentially.

Parameters
secondsInterval in seconds to wait after the last attribute update to save it into the attribute store. The value 0 indicates to save everything instantly.

◆ attribute_store_configuration_set_auto_save_safety_interval()

void attribute_store_configuration_set_auto_save_safety_interval ( unsigned int  seconds)

Configures if the Attribute Store will save changes to the datastore following a periodic interval as a backup if too many updates are performed.

Parameters
secondsInterval in seconds used to make periodic saves of the Attribute Store in the Datastore. The value 0 indicates to disable any safety back-up interval.

◆ attribute_store_configuration_set_type_validation()

void attribute_store_configuration_set_type_validation ( bool  enabled)

Configures if the Attribute Store will use the known type registration to validate any writing to node values and adding nodes under parents.

Enabling write validation may impact performance.

Parameters
enabledSet to true to enable it, false to disable.