Zigbee Protocol Controller 1.6.0
|
API for the creating, updating, and deleting persistent information. More...
Modules | |
ZigPC datastore accessor templates. | |
Templates and datastore accessor classes. | |
ZigPC datastore node identifiers. | |
Datastore related identifiers. | |
ZigPC datastore utility functions. | |
Datastore related utility functions. | |
Classes | |
struct | __attribute__ |
Network information. More... | |
Functions | |
sl_status_t | zigpc_datastore_create_network (void) |
Create network entity to be persisted. The read/write APIs can be used to manipulate the data associated with the network. More... | |
sl_status_t | zigpc_datastore_read_network (zigpc_network_data_t *const data) |
Read data from persisted network entity. More... | |
sl_status_t | zigpc_datastore_write_network (const zigpc_network_data_t *data) |
Write data to persisted network entity. More... | |
sl_status_t | zigpc_datastore_remove_network (void) |
Remove persisted network entity. More... | |
size_t | zigpc_datastore_get_device_count (void) |
Get count of devices persisted under the network. More... | |
sl_status_t | zigpc_datastore_find_device_by_index (size_t index, zigbee_eui64_t *const eui64) |
Find a particular device entity and retrieve its search key (EUI64) based on an index. See zigpc_datastore_get_device_count on getting the total number of devices persisted. More... | |
sl_status_t | zigpc_datastore_create_device (const zigbee_eui64_t eui64) |
Create device entity to be persisted under the network. The read/write APIs can be used to manipulate the data associated with this device entity. More... | |
sl_status_t | zigpc_datastore_read_device (const zigbee_eui64_t eui64, zigpc_device_data_t *const data) |
Read data from a persisted device entity. More... | |
bool | zigpc_datastore_is_device_contained (zigbee_eui64_uint_t device_eui64) |
Check is the datastore contains a device entity. More... | |
sl_status_t | zigpc_datastore_write_device (const zigbee_eui64_t eui64, const zigpc_device_data_t *data) |
Write data to a persisted device entity. More... | |
sl_status_t | zigpc_datastore_remove_device (const zigbee_eui64_t eui64) |
Remove persisted device entity. More... | |
sl_status_t | zigpc_datastore_remove_device_children (const zigbee_eui64_t eui64) |
Remove persisted children under device entity. More... | |
size_t | zigpc_datastore_get_endpoint_count (const zigbee_eui64_t eui64) |
Get count of endpoints persisted under a device. More... | |
sl_status_t | zigpc_datastore_find_endpoint_by_index (const zigbee_eui64_t eui64, size_t index, zigbee_endpoint_id_t *endpoint_id) |
Find a particular endpoint entity persisted under a device and retrieve its search key (endpoint_id) based on an index. See zigpc_datastore_get_endpoint_count on getting the total number of endpoints persisted under a device. More... | |
sl_status_t | zigpc_datastore_create_endpoint (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id) |
Create endpoint entity to be persisted under a device. The read/write APIs can be used to manipulate the data associated with this endpoint entity. More... | |
sl_status_t | zigpc_datastore_read_endpoint (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zigpc_endpoint_data_t *const data) |
Read data from a persisted endpoint entity. More... | |
sl_status_t | zigpc_datastore_write_endpoint (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, const zigpc_endpoint_data_t *data) |
Write data to a persisted device entity. More... | |
sl_status_t | zigpc_datastore_remove_endpoint (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id) |
Remove persisted endpoint entity. More... | |
size_t | zigpc_datastore_get_group_count (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported) |
Get count of groups persisted under an endpoint. More... | |
sl_status_t | zigpc_datastore_find_group_by_index (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported, size_t index, zigbee_group_id_t *group_id) |
Find a particular group entity persisted under a device endpoint and retrieve its search key (group_id) based on an index. See zigpc_datastore_get_group_count on getting the total number of groupss persisted under a device endpoint. More... | |
bool | zigpc_datastore_contains_group (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported, zigbee_group_id_t group_id) |
Determine if a particular group ID is supported under a device endpoint. More... | |
sl_status_t | zigpc_datastore_create_group (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported, zigbee_group_id_t group_id) |
Create group entity to be persisted under a device endpoint. The read/write APIs can be used to manipulate the data associated with this group entity. More... | |
sl_status_t | zigpc_datastore_read_group (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported, zigbee_group_id_t group_id, zigpc_group_data_t *const data) |
Read data from a persisted group entity. More... | |
sl_status_t | zigpc_datastore_write_group (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported, zigbee_group_id_t group_id, const zigpc_group_data_t *data) |
Write data to a persisted group entity. More... | |
sl_status_t | zigpc_datastore_remove_group (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, bool is_reported, zigbee_group_id_t group_id) |
Remove persisted group entity. More... | |
size_t | zigpc_datastore_get_cluster_count (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side) |
Get count of clusters persisted under a device endpoint. More... | |
sl_status_t | zigpc_datastore_find_cluster_by_index (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, size_t index, zcl_cluster_id_t *cluster_id) |
Find a particular cluster entity persisted under a device endpoint and retrieve its search key (cluster_id) based on an index. See zigpc_datastore_get_cluster_count on getting the total number of clusters persisted under a device endpoint. More... | |
bool | zigpc_datastore_contains_cluster (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id) |
Determine if a particular cluster ID is supported under a device endpoint. More... | |
sl_status_t | zigpc_datastore_create_cluster (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id) |
Create cluster entity to be persisted under a device endpoint. The read/write APIs can be used to manipulate the data associated with this cluster entity. More... | |
sl_status_t | zigpc_datastore_read_cluster (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, zigpc_cluster_data_t *const data) |
Read data from a persisted cluster entity. More... | |
sl_status_t | zigpc_datastore_write_cluster (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, const zigpc_cluster_data_t *data) |
Write data to a persisted cluster entity. More... | |
sl_status_t | zigpc_datastore_remove_cluster (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id) |
Remove persisted cluster entity. More... | |
size_t | zigpc_datastore_get_attribute_count (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id) |
Get count of attributes persisted under a cluster. More... | |
sl_status_t | zigpc_datastore_read_attribute_list (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, zcl_attribute_id_t *const attribute_list, size_t *attribute_count) |
Read the attribute list under a given cluster. More... | |
sl_status_t | zigpc_datastore_write_attribute_list (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, const zcl_attribute_id_t *attribute_list, size_t attribute_count) |
Write attribute list under a given cluster. This function will overwrite any existing list by removing any pre-existing list. More... | |
size_t | zigpc_datastore_get_command_count (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, zcl_command_type_t command_type) |
Get count of commands persisted under a cluster based on the command type passed in. More... | |
sl_status_t | zigpc_datastore_read_command_list (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, zcl_command_type_t command_type, zcl_command_id_t *const command_list, size_t *command_count) |
Read command list under a given cluster based on the command type passed in. More... | |
sl_status_t | zigpc_datastore_write_command_list (const zigbee_eui64_t eui64, zigbee_endpoint_id_t endpoint_id, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, zcl_command_type_t command_type, const zcl_command_id_t *command_list, size_t command_count) |
Write command list under a given cluster based on the command type passed in. This function will overwrite any existing list by removing any pre-existing list. More... | |
sl_status_t | zigpc_datastore_find_endpoint_containing_cluster (const zigbee_eui64_t eui64, zcl_cluster_side_t cluster_side, zcl_cluster_id_t cluster_id, zigbee_endpoint_id_t *const endpoint_id) |
Find the endpoint identifier under a device containing a particular cluster identifier. More... | |
void | zigpc_datastore_log_device_disc_state (const zigbee_eui64_t eui64) |
Log the stored discovery information under a device which includes: endpoints, clusters, attributes, and command support information. More... | |
sl_status_t | zigpc_datastore_log_network (const char *log_tag, sl_log_level_t log_level, const char *log_prefix) |
Log the network information. More... | |
sl_status_t | zigpc_datastore_log_device (const char *log_tag, sl_log_level_t log_level, const char *log_prefix, const zigbee_eui64_t eui64) |
Log single device entity. More... | |
void | zigpc_datastore_log_clusters (const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint_id) |
Log clusters on an EUI64, endpoint. Logs both server and client clusters. More... | |
API for the creating, updating, and deleting persistent information.
The ZigPC datastore component allows components to persist discovery information using the tree-based storage API provided by the shared Unify attribute store component. The desired fields in the attribute store are used as a container to store the search keys for network, device, endpoint, and cluster entity searching. The following APIs are available for each of these entities: create, read, write, remove, get_count, and find_by_index.
In order to perist an entity, it should first be created before any data can be read/written from it.
The get_count and find_by_index operations can be used to iterate through sub-entities (i.e. iterating through endpoints in a device).
The following diagram shows the relationship between each of these entities:
bool zigpc_datastore_contains_cluster | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id | ||
) |
Determine if a particular cluster ID is supported under a device endpoint.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier to find. |
bool zigpc_datastore_contains_group | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported, | ||
zigbee_group_id_t | group_id | ||
) |
Determine if a particular group ID is supported under a device endpoint.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
is_reported | Look in stored reported/desired state. |
group_id | Reference to group identifier search key to populate. |
sl_status_t zigpc_datastore_create_cluster | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id | ||
) |
Create cluster entity to be persisted under a device endpoint. The read/write APIs can be used to manipulate the data associated with this cluster entity.
eui64 | Device identifier to persist under. |
endpoint_id | Endpoint identifier to persist under. |
cluster_id | Cluster identifier. |
cluster_side | Cluster side (server/client). |
sl_status_t zigpc_datastore_create_device | ( | const zigbee_eui64_t | eui64 | ) |
Create device entity to be persisted under the network. The read/write APIs can be used to manipulate the data associated with this device entity.
eui64 | Device identifier. |
sl_status_t zigpc_datastore_create_endpoint | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id | ||
) |
Create endpoint entity to be persisted under a device. The read/write APIs can be used to manipulate the data associated with this endpoint entity.
eui64 | Device identifier to persist under. |
endpoint_id | Endpoint identifier. |
sl_status_t zigpc_datastore_create_group | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported, | ||
zigbee_group_id_t | group_id | ||
) |
Create group entity to be persisted under a device endpoint. The read/write APIs can be used to manipulate the data associated with this group entity.
eui64 | Device identifier to persist under. |
endpoint_id | Endpoint identifier to persist under. |
is_reported | Look in stored reported/desired state. |
group_id | Reference to group identifier search key to populate. |
sl_status_t zigpc_datastore_create_network | ( | void | ) |
Create network entity to be persisted. The read/write APIs can be used to manipulate the data associated with the network.
sl_status_t zigpc_datastore_find_cluster_by_index | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
size_t | index, | ||
zcl_cluster_id_t * | cluster_id | ||
) |
Find a particular cluster entity persisted under a device endpoint and retrieve its search key (cluster_id) based on an index. See zigpc_datastore_get_cluster_count on getting the total number of clusters persisted under a device endpoint.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
index | Index to retrieve. |
cluster_id | Reference to cluster identifier search key to populate. |
sl_status_t zigpc_datastore_find_device_by_index | ( | size_t | index, |
zigbee_eui64_t *const | eui64 | ||
) |
Find a particular device entity and retrieve its search key (EUI64) based on an index. See zigpc_datastore_get_device_count on getting the total number of devices persisted.
index | Index to retrieve. |
eui64 | Reference to device identifier search key to populate. |
sl_status_t zigpc_datastore_find_endpoint_by_index | ( | const zigbee_eui64_t | eui64, |
size_t | index, | ||
zigbee_endpoint_id_t * | endpoint_id | ||
) |
Find a particular endpoint entity persisted under a device and retrieve its search key (endpoint_id) based on an index. See zigpc_datastore_get_endpoint_count on getting the total number of endpoints persisted under a device.
eui64 | Device identifier. |
index | Index to retrieve. |
endpoint_id | Reference to endpoint identifier search key to populate. |
sl_status_t zigpc_datastore_find_endpoint_containing_cluster | ( | const zigbee_eui64_t | eui64, |
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
zigbee_endpoint_id_t *const | endpoint_id | ||
) |
Find the endpoint identifier under a device containing a particular cluster identifier.
eui64 | Device identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
endpoint_id | Reference to endpoint identifier search key to populate. |
sl_status_t zigpc_datastore_find_group_by_index | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported, | ||
size_t | index, | ||
zigbee_group_id_t * | group_id | ||
) |
Find a particular group entity persisted under a device endpoint and retrieve its search key (group_id) based on an index. See zigpc_datastore_get_group_count on getting the total number of groupss persisted under a device endpoint.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
is_reported | Look in stored reported/desired state. |
index | Index to retrieve. |
size_t zigpc_datastore_get_attribute_count | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id | ||
) |
Get count of attributes persisted under a cluster.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
size_t zigpc_datastore_get_cluster_count | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side | ||
) |
Get count of clusters persisted under a device endpoint.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
size_t zigpc_datastore_get_command_count | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
zcl_command_type_t | command_type | ||
) |
Get count of commands persisted under a cluster based on the command type passed in.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
command_type | Type of commands under the cluster (out/in). |
size_t zigpc_datastore_get_device_count | ( | void | ) |
Get count of devices persisted under the network.
size_t zigpc_datastore_get_endpoint_count | ( | const zigbee_eui64_t | eui64 | ) |
Get count of endpoints persisted under a device.
eui64 | Device identifier. |
size_t zigpc_datastore_get_group_count | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported | ||
) |
Get count of groups persisted under an endpoint.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
is_reported | Look in stored reported/desired state. |
bool zigpc_datastore_is_device_contained | ( | zigbee_eui64_uint_t | device_eui64 | ) |
Check is the datastore contains a device entity.
device_eui64 |
void zigpc_datastore_log_clusters | ( | const zigbee_eui64_t | eui64, |
const zigbee_endpoint_id_t | endpoint_id | ||
) |
Log clusters on an EUI64, endpoint. Logs both server and client clusters.
eui64 | Address whose clusters should be logged |
endpoint_id | Endpoint whose clusters should be logged |
sl_status_t zigpc_datastore_log_device | ( | const char * | log_tag, |
sl_log_level_t | log_level, | ||
const char * | log_prefix, | ||
const zigbee_eui64_t | eui64 | ||
) |
Log single device entity.
log_tag | Tag to log the message under. |
log_level | Level to log the message under. |
log_prefix | String to prefix log message. |
eui64 | Device identifier. |
void zigpc_datastore_log_device_disc_state | ( | const zigbee_eui64_t | eui64 | ) |
Log the stored discovery information under a device which includes: endpoints, clusters, attributes, and command support information.
eui64 | Device identifier. |
sl_status_t zigpc_datastore_log_network | ( | const char * | log_tag, |
sl_log_level_t | log_level, | ||
const char * | log_prefix | ||
) |
Log the network information.
log_tag | Tag to log the message under. |
log_level | Level to log the message under. |
log_prefix | String to prefix log message. |
sl_status_t zigpc_datastore_read_attribute_list | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
zcl_attribute_id_t *const | attribute_list, | ||
size_t * | attribute_count | ||
) |
Read the attribute list under a given cluster.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
attribute_list | Attribute list to populate. |
attribute_count | Reference to attribute list count; IN: Provides the capacity of list passed in; OUT: updates with number of items populated into the list. |
sl_status_t zigpc_datastore_read_cluster | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
zigpc_cluster_data_t *const | data | ||
) |
Read data from a persisted cluster entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_id | Cluster identifier. |
cluster_side | Cluster side (server/client). |
data | Cluster data to be read. |
sl_status_t zigpc_datastore_read_command_list | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
zcl_command_type_t | command_type, | ||
zcl_command_id_t *const | command_list, | ||
size_t * | command_count | ||
) |
Read command list under a given cluster based on the command type passed in.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
command_type | Type of commands under the cluster (out/in). |
command_list | Command list to populate. |
command_count | Reference to command list count; IN: Provides the capacity of list passed in; OUT: updates with number of items populated into the list. |
sl_status_t zigpc_datastore_read_device | ( | const zigbee_eui64_t | eui64, |
zigpc_device_data_t *const | data | ||
) |
Read data from a persisted device entity.
eui64 | Device identifier. |
data | Device information to read. |
sl_status_t zigpc_datastore_read_endpoint | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zigpc_endpoint_data_t *const | data | ||
) |
Read data from a persisted endpoint entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
data | Endpoint data to be read. |
sl_status_t zigpc_datastore_read_group | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported, | ||
zigbee_group_id_t | group_id, | ||
zigpc_group_data_t *const | data | ||
) |
Read data from a persisted group entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
is_reported | Look in stored reported/desired state. |
group_id | Reference to group identifier search key to populate. |
data | Group data to be read. |
sl_status_t zigpc_datastore_read_network | ( | zigpc_network_data_t *const | data | ) |
Read data from persisted network entity.
data | Network information to read. |
sl_status_t zigpc_datastore_remove_cluster | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id | ||
) |
Remove persisted cluster entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_id | Cluster identifier. |
cluster_side | Cluster side (server/client). |
sl_status_t zigpc_datastore_remove_device | ( | const zigbee_eui64_t | eui64 | ) |
Remove persisted device entity.
eui64 | Device identifier. |
sl_status_t zigpc_datastore_remove_device_children | ( | const zigbee_eui64_t | eui64 | ) |
Remove persisted children under device entity.
eui64 | Device identifier. |
sl_status_t zigpc_datastore_remove_endpoint | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id | ||
) |
Remove persisted endpoint entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
sl_status_t zigpc_datastore_remove_group | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported, | ||
zigbee_group_id_t | group_id | ||
) |
Remove persisted group entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
is_reported | Look in stored reported/desired state. |
group_id | Reference to group identifier search key to populate. |
sl_status_t zigpc_datastore_remove_network | ( | void | ) |
Remove persisted network entity.
sl_status_t zigpc_datastore_write_attribute_list | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
const zcl_attribute_id_t * | attribute_list, | ||
size_t | attribute_count | ||
) |
Write attribute list under a given cluster. This function will overwrite any existing list by removing any pre-existing list.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
attribute_list | Attribute list to persist. |
attribute_count | Number of list items to persist. |
sl_status_t zigpc_datastore_write_cluster | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
const zigpc_cluster_data_t * | data | ||
) |
Write data to a persisted cluster entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_id | Cluster identifier. |
cluster_side | Cluster side (server/client). |
data | Cluster data to be written. |
sl_status_t zigpc_datastore_write_command_list | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
zcl_cluster_side_t | cluster_side, | ||
zcl_cluster_id_t | cluster_id, | ||
zcl_command_type_t | command_type, | ||
const zcl_command_id_t * | command_list, | ||
size_t | command_count | ||
) |
Write command list under a given cluster based on the command type passed in. This function will overwrite any existing list by removing any pre-existing list.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
cluster_side | Cluster side (server/client). |
cluster_id | Cluster identifier. |
command_type | Type of commands under the cluster (out/in). |
command_list | Command list to persist. |
command_count | Number of list items to persist. |
sl_status_t zigpc_datastore_write_device | ( | const zigbee_eui64_t | eui64, |
const zigpc_device_data_t * | data | ||
) |
Write data to a persisted device entity.
eui64 | Device identifier. |
data | Device information to write. |
sl_status_t zigpc_datastore_write_endpoint | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
const zigpc_endpoint_data_t * | data | ||
) |
Write data to a persisted device entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
data | Endpoint data to be written. |
sl_status_t zigpc_datastore_write_group | ( | const zigbee_eui64_t | eui64, |
zigbee_endpoint_id_t | endpoint_id, | ||
bool | is_reported, | ||
zigbee_group_id_t | group_id, | ||
const zigpc_group_data_t * | data | ||
) |
Write data to a persisted group entity.
eui64 | Device identifier. |
endpoint_id | Endpoint identifier. |
is_reported | Look in stored reported/desired state. |
group_id | Reference to group identifier search key to populate. |
data | Group data to be read. |
sl_status_t zigpc_datastore_write_network | ( | const zigpc_network_data_t * | data | ) |
Write data to persisted network entity.
data | Network information to write. |