Get Bluetooth device name
Get local Bluetooth adapter name
// PRIVILEGE needed to be set in tizen-manifest.xml:
// http://tizen.org/privilege/bluetooth
#include <bluetooth.h>
#include <dlog.h> // for logging purposes
void
get_bluetooth_name() {
char* name;
if(bt_initialize() == BT_ERROR_NONE) {
if(bt_adapter_get_name(&name) == BT_ERROR_NONE) {
LOGI("Local Bluetooth name: %s", name);
}
}
bt_deinitialize();
}