Retrieve the local device address.
Synopsis:
#include <btapi/btdevice.h>
int bt_ldev_get_address(char *bt_addr)
Arguments:
- bt_addr
-
A pointer to an 18-byte buffer where the Bluetooth MAC address is written in NULL-terminated printable format. 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)
Description:
Requests the Bluetooth MAC address of the local device.
Returns:
0 is returned upon success,
-1 with the
errno set otherwise. Any
errno value other than the following indicates that a system error has occurred:
- ENOENT: The local device address could not be found.