Retrieve a structure representing a remote Bluetooth-enabled device.
bt_remote_device_t* bt_rdev_get_device(const char *bt_addr)
The Bluetooth MAC address of the remote device, including the terminating NULL character. For example, 00:00:00:00:00:00\0.
Library:libbtapi (For the qcc command, use the -l btapi option to link against this library)
This function allocates a bt_remote_device_t structure and fills the address field with the one MAC address provided by the bt_addr. All other fields in the structure are filled with values if the specified device is either paired or cached on the system. NOTE: See bt_rdev_get_type() to determine whether the other fields in the structure are filled with valid, discovered data.
- EINVAL: An invalid value was passed in for bt_addr.
- ENOMEM: There was insufficient memory to allocate required structures.
- ENOENT: A required data entry was not found (internal error).
- EPERM: There was an error accessing required system data (internal error).
Last modified: 2014-05-14