1.2.5.73 LBP_ADP_NETWORK_JOIN_CFM_CALLBACK Typedef

C

typedef void (*LBP_ADP_NETWORK_JOIN_CFM_CALLBACK)(LBP_ADP_NETWORK_JOIN_CFM_PARAMS* pNetworkJoinCfm);

Summary

Pointer to a Network Join Confirm Event handler function.

Description

This data type defines the required function signature for the ADP Network Join Confirm event handling callback function. The ADP Network Join Confirm primitive allows the upper layer to be notified of the completion of an ADP Network Join 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 Join Confirm events back from module.

The Network Join Confirm is generated after LBP_AdpNetworkJoinRequest function call to indicate the result.

Returns

None.

Example

App_LbpJoinConfirm(LBP_ADP_NETWORK_JOIN_CFM_PARAMS *params)
{
    // Check result
    if (params->status == G3_SUCCESS)
    {
        // Network Joined. See Short Address and PAN ID on params fields.
    }
}

Remarks

None.