eCLD_PollControlSetAttribute
teZCL_Status eCLD_PollControlSetAttribute(
uint8 u8SourceEndPointId,
uint8 u8AttributeId,
uint32 u32AttributeValue);*
Description
This function can be used on a cluster server to write to an attribute of the Poll Control cluster. The function writes to the relevant field of the tsCLD_PollControlstructure (detailed in Section 20.2). The attribute to be accessed is specified using its attribute identifier - enumerations are provided (see Section 20.8.1).
Therefore, this function can be used to change the configuration of the Poll Control cluster. The change takes effect immediately. So, for example, if the End Device is in normal poll mode when the ‘long poll interval’ is modified, the polling period is immediately re-timed to the new value. If the modified attribute is not related to the currently operating poll mode, the change is implemented the next time the relevant poll mode is started.
The specified value of the attribute is validated by the function. If this value is out-of-range for the attribute, the status E_ZCL_ERR_INVALID_VALUE is returned.
Parameters
u8SourceEndPointId: Number of local endpoint on which cluster resides
u8AttributeId : Identifier of attribute to be written to (see Section 20.8.1)
u32AttributeValue: Value to be written to attribute
Returns
E_ZCL_SUCCESS
E_ZCL_FAIL
E_ZCL_ERR_INVALID_VALUE
E_ZCL_DENY_ATTRIBUTE_ACCESS
Parent topic:Server Functions