The Attribute Polling Engine supplies the functionality of polling attribute reported values with a supplied interval.
More...
The Attribute Polling Engine supplies the functionality of polling attribute reported values with a supplied interval.
With APE it is possible to register attributes, that shall be polled together with an interval with which the attribute is desired to be polled. APE has following features:
- Backoff interval between polls to prevent flodding the network with polls
- Maximum number of polls per hour
◆ attribute_poll_register_default
◆ attribute_poll_deregister()
Deregister polling of an attribute.
- Parameters
-
node | Node to deregister polling for |
- Returns
- sl_status_t
◆ attribute_poll_disable()
Disable the Poll Engine.
Stop the Poll Engine from triggering any new polls
- Returns
- sl_status_t
◆ attribute_poll_enable()
Enable the Poll Engine.
Start the Poll Engine, the engine is default started, so this only makes sense to call after calling attribute_poll_disable.
- Returns
- sl_status_t
◆ attribute_poll_init()
Initialize the attribute poll engine.
- Parameters
-
backoff | The minimum time in seconds between 2 polls. |
default_interval | Default interval in secoƩnd, at which attributes will be polled, if no value is provided for a specific attribute type |
poll_mark_attribute_type | The Attribute Store type to use to mark attributes as pollable. Note that this attribute must not be registered with a fixed parent (use ATTRIBUTE_STORE_INVALID_ATTRIBUTE_TYPE) or storage data type (use UNKNOWN_STORAGE_TYPE). |
- Returns
- sl_status_t SL_STATUS_OK on success
◆ attribute_poll_print()
void attribute_poll_print |
( |
| ) |
|
print the entries present in the attribute poll list
◆ attribute_poll_register()
Register a node for polling.
- Parameters
-
node | Attribute store node id to poll |
interval | desired polling interval in seconds |
- Returns
- sl_status_t
◆ attribute_poll_schedule()
Schedule a poll as soon as possible.
- Parameters
-
node | Attribute store Node to add to the poll list. |
- Returns
- sl_status_t