eCLD_LevelControlGetLevel
teZCL_Status eCLD_LevelControlGetLevel(
uint8 u8SourceEndPointId,
uint8 *pu8Level);
Description
This function obtains the current level on the device on the specified (local) endpoint by reading the ‘current level’ attribute.
Parameters
u8SourceEndPointId Number of the local endpoint from which the level is to be read
pu8Level Pointer to location to receive obtained level
Returns
E_ZCL_SUCCESS
E_ZCL_ERR_PARAMETER_NULL
E_ZCL_ERR_EP_RANGE
E_ZCL_ERR_EP_UNKNOWN
E_ZCL_ERR_CLUSTER_NOT_FOUND
E_ZCL_ERR_ZBUFFER_FAIL
E_ZCL_ERR_ZTRANSMIT_FAIL
If an error is returned by the ZigBee PRO stack function which is invoked by this function to transmit the data, this error may be obtained by calling eZCL_GetLastZpsError().
Parent topic:Functions