eSE_DRLCCancelLoadControlEvent
teSE_DRLCStatus eSE_DRLCCancelLoadControlEvent(
uint8 u8SourceEndPointId,
uint8 u8DestinationEndPointId,
tsZCL_Address psDestinationAddress,
tsSE_DRLCCancelLoadControlEvent
*psCancelLoadControlEvent,
uint8 *pu8TransactionSequenceNumber);
Description
This function can be used on the DRLC cluster server to cancel an LCE. The LCE is cancelled locally and the cancellation is also sent to the specified DRLC cluster client endpoints. The LCE is ultimately moved to the ‘Deallocated’ list.
The cancellation request should normally be sent to client endpoints that have been previously bound to the cluster server. This is done by specifying an address type of E_ZCL_AM_BOUND in the tsZCL_Address structure - in this case, the address field of this structure and the destination endpoint in the function call are both ignored.
The LCE cancellation requirements are specified in the structure tsSE_DRLCCancelLoadControlEvent, including the applicable device class(es) and enrolment group(s), as well as an immediate or randomized end (for a full description of the end-time options, refer to Section 41.5.3).
Parameters
u8SourceEndPointId: Number of the local endpoint through which the request is sent
u8DestinationEndPointId: Number of the remote endpoint to which the request is sent. Note that this parameter is ignored when sending to address types E_ZCL_AM_BOUND and E_ZCL_AM_GROUP
psDestinationAddress: Pointer to a ZCL structure containing the address of the remote node to which the request is sent
psCancelLoadControlEvent: Pointer to a structure which contains the LCE cancellation requirements (see Section 41.11.3)
pu8TransactionSequenceNumber: Pointer to a location to store the Transaction Sequence Number (TSN) of the request
Returns
Any relevant DRLC return code listed in Section 41.9 or ZCL return code listed in Section 7.2
Parent topic:Functions