summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2019-12-20 14:04:42 +0900
committerDoHyun Pyun <dh79.pyun@samsung.com>2019-12-20 14:04:42 +0900
commit4080c7761b5674c43b52a7606d61bbbf3555abf2 (patch)
tree098cdce8647f1c4ba35ba29d530294148359fcff /test
parentfd89eea6b289e31578198c724c4e03c66b36296d (diff)
downloadbluetooth-4080c7761b5674c43b52a7606d61bbbf3555abf2.tar.gz
bluetooth-4080c7761b5674c43b52a7606d61bbbf3555abf2.tar.bz2
bluetooth-4080c7761b5674c43b52a7606d61bbbf3555abf2.zip
Add the log for local BT address
Change-Id: I9811e8a08d6beaec353a02769e60686977effc39 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Diffstat (limited to 'test')
-rw-r--r--test/ble_mouse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ble_mouse.c b/test/ble_mouse.c
index 8b7428b..31305db 100644
--- a/test/ble_mouse.c
+++ b/test/ble_mouse.c
@@ -617,6 +617,7 @@ int main()
{
int timeout_id = -1;
int ret = BT_ERROR_NONE;
+ char *local_address = NULL;
g_mainloop = g_main_loop_new(NULL, FALSE);
@@ -654,12 +655,16 @@ int main()
BLE_PRT("BT was already enabled.");
}
- /* Set name as "chat_server" */
if (bt_state != BT_ADAPTER_ENABLED) {
BLE_PRT("BT is not enabled.");
return -1;
}
+ ret = bt_adapter_get_address(&local_address);
+ BLE_PRT("\n\nLocal BT address: %s\n", local_address);
+
+ g_free(local_address);
+
ret = bt_gatt_set_connection_state_changed_cb(
__bt_gatt_connection_state_changed_cb, NULL);
if (ret != BT_ERROR_NONE)