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... | |
Allows to configure how the attribute store behaves.
This modules provides functions to change runtime the behavior/configuration of the Attribute Store.
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.
seconds | Interval in seconds to wait after the last attribute update to save it into the attribute store. The value 0 indicates to save everything instantly. |
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.
seconds | Interval 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. |
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.
enabled | Set to true to enable it, false to disable. |