pd_initialize()

Initializes the peripheral discovery API.

Synopsis:

#include <peripheral_discovery.h>
 
int pd_initialize(unsigned int flags)

Since:

BlackBerry 10.2.0

Arguments:

flags

Must be set to 0 (reserved for future use)

Library:

libperipheral_discovery (For the qcc command, use the -l peripheral_discovery option to link against this library)

Description:

This function must be called before calling any other peripheral discovery functions.

This code sample shows how to initialize the peripheral discovery API:
 if( pd_initialize( 0 ) != EOK ) {
     printf( "Couldn't connect to peripheral discovery API\n" );
 }

Returns:

EOK on success.