Retrieve all the peripherals connected to the device.
#include <peripheral_discovery.h>
int pd_get_peripherals(pd_class_t class_id, pd_peripheral_list_t *list)
BlackBerry 10.2.0
The class of peripherals to return.
The list of peripherals from pd_alloc_peripheral_list().
Note: You can call this function multiple times without allocating another list.
EOK on success.