Tizen Native API
5.0
|
The read reporting configuration record.
Note that attributes with data types of array, structure, set or bag cannot be reported.
#include <zigbee.h>
The Read Reporting Configuration Record is used to read the configuration details of the reporting mechanism for one or more of the attributes of a cluster
Functions | |
int | zb_read_report_config_record_create (zb_zcl_read_report_config_record_h *handle) |
Creates a read reporting configuration record. | |
int | zb_read_report_config_record_destroy (zb_zcl_read_report_config_record_h handle) |
Destroys a read reporting configuration record. | |
int | zb_read_report_config_record_set_dir (zb_zcl_read_report_config_record_h handle, zb_zcl_fc_direction_e dir) |
Sets the direction of a read reporting configuration record. | |
int | zb_read_report_config_record_set_id (zb_zcl_read_report_config_record_h handle, unsigned short id) |
Sets the attribute identifier of a read reporting configuration record. |
Creates a read reporting configuration record.
Allocates memory for read reporting configuration record.
[out] | handle | The handle of read configuration record |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_OUT_OF_MEMORY | Out-of-memory |
ZIGBEE_ERROR_PERMISSION_DENIED | Permission denied |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
Destroys a read reporting configuration record.
Removes allocated memory for read reporting configuration record.
[in] | handle | The handle of write attribute record |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_read_report_config_record_set_dir | ( | zb_zcl_read_report_config_record_h | handle, |
zb_zcl_fc_direction_e | dir | ||
) |
Sets the direction of a read reporting configuration record.
The direction field specifies whether values of the attribute are reported (0x00), or whether reports of the attribute are received (0x01).
All other values of this field are reserved.
[in] | handle | The handle of write attribute status record |
[in] | dir | direction |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_read_report_config_record_set_id | ( | zb_zcl_read_report_config_record_h | handle, |
unsigned short | id | ||
) |
Sets the attribute identifier of a read reporting configuration record.
The attribute identifier field shall contain the identifier of the attribute whose reporting configuration details are to be read.
[in] | handle | The handle of write attribute status record |
[in] | id | Attribute identifier |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |