1.2.5.75 LBP_ADP_NETWORK_LEAVE_CFM_CALLBACK Typedef

C

typedef void (*LBP_ADP_NETWORK_LEAVE_CFM_CALLBACK)(uint8_t status);

Summary

Pointer to a Network Leave Confirm Event handler function.

Description

This data type defines the required function signature for the ADP Network Leave Confirm event handling callback function. The ADP Network Leave Confirm primitive allows the upper layer to be notified of the completion of an ADP Network Leave Request.

A client must register a pointer using the event handling function whose function signature (parameter and return value types) matches the types specified by this function pointer in order to receive ADP Network Leave Confirm events back from module.

The Network Leave Confirm is generated after LBP_AdpNetworkLeaveRequest function call to indicate the result.

Parameters

ParamDescription
statusThe Leave result

Returns

None.

Example

App_LbpLeaveConfirm(uint8_t status)
{
    // Check result
    if (status == G3_SUCCESS)
    {
        // Network correctly left
    }
}

Remarks

None.