1.2.5.23 ADP_DISCOVERY_CFM_CALLBACK Typedef

C

typedef void (*ADP_DISCOVERY_CFM_CALLBACK)(uint8_t status);

Summary

Pointer to a Discovery Confirm Event handler function.

Description

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

The Discovery Confirm is generated after the Timeout set by the upper layer in the ADP_DiscoveryRequest function call.

Parameters

ParamDescription
statusThe result of the discovery request. G3_SUCCESS if neighbouring PANs are found, Error Code otherwise.

Returns

None.

Example

App_DiscoveryConfirm(uint8_t status)
{
    // Check result
    if (status == G3_SUCCESS)
    {
        // Check received PAN Descriptors
    }
}

Remarks

None.