Tizen Native API
5.0
|
The write attribute status record.
#include <zigbee.h>
The write attributes response status record is generated in response to a write attributes command.
int zb_write_attr_status_clone | ( | zb_zcl_write_attr_status_record_h | src, |
zb_zcl_write_attr_status_record_h * | dst | ||
) |
Clones a write attribute status record.
[in] | src | Source handle of write attribute status record |
[in] | dst | Destination handle of write attribute status record |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_write_attr_status_create | ( | zb_zcl_write_attr_status_record_h * | handle | ) |
Creates write attribute status record.
This allocates heap for write attribute status record
[out] | handle | The handle of write attribute status record |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_IO_ERROR | Unexpected d-bus error |
ZIGBEE_ERROR_PERMISSION_DENIED | Permission denied |
Destroys a write attribute status record.
[in] | handle | The handle of write attribute status record |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_write_attr_status_get_id | ( | zb_zcl_write_attr_status_record_h | handle, |
zb_attribute_id * | id | ||
) |
Gets the identifier from a write attribute status record.
The attribute identifier field is 16 bits in length and shall contain the identifier of the attribute that has been write (or of which an element has been write).
This field shall contain the same value that was included in the corresponding attribute identifier field of the original write attributes or write attributes structured command.
[in] | handle | The handle of write attribute status record |
[out] | id | Attribute identifier |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_write_attr_status_get_status | ( | zb_zcl_write_attr_status_record_h | handle, |
zb_zcl_status_e * | status | ||
) |
Gets the status from a write attribute status record.
The status field is 8 bits in length and specifies the status of the read operation on this attribute.
This field shall be set to ZB_ZCL_STATUS_SUCCESS, if the operation was successful, or an error code, as specified in zb_zcl_status_e if the operation was not successful.
[in] | handle | The handle of read attribute status record |
[out] | status | error code |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |
int zb_write_attr_status_set_id | ( | zb_zcl_write_attr_status_record_h | handle, |
zb_attribute_id | id | ||
) |
Sets the identifier to a write attribute status record.
The attribute identifier field is 16 bits in length and shall contain the identifier of the attribute that has been write (or of which an element has been write).
This field shall contain the same value that was included in the corresponding attribute identifier field of the original write attributes or write attributes structured command.
[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 |
int zb_write_attr_status_set_status | ( | zb_zcl_write_attr_status_record_h | handle, |
zb_zcl_status_e | status | ||
) |
Sets the status to a write attribute status record.
The status field is 8 bits in length and specifies the status of the read operation on this attribute.
[in] | handle | The handle of read attribute status record |
[in] | status | error code |
ZIGBEE_ERROR_NONE | Successful |
ZIGBEE_ERROR_INVALID_PARAMETER | Invalid parameter |
ZIGBEE_ERROR_NOT_SUPPORTED | Not supported |