pd_get_peripherals()

Retrieve all the peripherals connected to the device.

Synopsis:

#include <peripheral_discovery.h>
 
int pd_get_peripherals(pd_class_t class_id, pd_peripheral_list_t *list)

Since:

BlackBerry 10.2.0

Arguments:

class_id

The class of peripherals to return.

list

The list of peripherals from pd_alloc_peripheral_list().

Library:

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

Description:

Note: You can call this function multiple times without allocating another list.

Returns:

EOK on success.