5.1.7.3.8 ZCL_ReadAttributeValue Function
Syntax
ZCL_Status_t ZCL_ReadAttributeValue(Endpoint_t endpointId, ClusterId_t clusterId,uint8_t clusterSide, ZCL_AttributeId_t attrId, uint8_t *attrType, uint8_t *attrValue);
Description
This function finds an attribute in ZCL and returns its value.
The user can use this function to obtain only local attributes. To access an attribute on a remote device, send a read attributes general cluster command via the ZCL_AttributeReq()
function.
Input Parameters
Parameter Name | Description |
---|---|
endpointId | Endpoint where the cluster is registered |
clusterId | Cluster unique identifier |
clusterSide | Detects the cluster’s side (client or server) |
attrId | Attribute unique identifier |
attrType | Pointer to attribute type determined and returned |
attrValue |
|
Return Type and Values
- The status of the operation:
ZCL_SUCCESS_STATUS (0x00)
– Attribute value is obtained successfullyZCL_UNSUPPORTED_ATTRIBUTE_STATUS (0x86)
– Does not support the specified attribute