diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-21 16:58:18 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-21 16:58:18 +0200 |
commit | 9042b87f32bcabcc671e393376d3fb96ad858caa (patch) | |
tree | c68fe4f680fcc2a53ff3375141c9ad52cd1a028e /apps/ble-inspect-device.h | |
parent | 4529a75f15bffd5bb941818deef03fb50a6fc9c9 (diff) | |
download | ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.tar.gz ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.tar.bz2 ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.tar.xz ble-toys-9042b87f32bcabcc671e393376d3fb96ad858caa.zip |
ble-scan:
o New tool to scan for devices. Requires root on linux :( Linux is also touchy if the program dies.
BluetoothAdapter:
o Adding getMac().
Diffstat (limited to 'apps/ble-inspect-device.h')
-rw-r--r-- | apps/ble-inspect-device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/ble-inspect-device.h b/apps/ble-inspect-device.h index 0bb70aa..346f9be 100644 --- a/apps/ble-inspect-device.h +++ b/apps/ble-inspect-device.h @@ -56,9 +56,9 @@ public: try { Mac mac = Mac::parseMac(mac_str); - BluetoothAdapter &adapter = getAdapter(0); + shared_ptr<BluetoothAdapter> adapter = getAdapter(0); - BluetoothDevice &device = adapter.getDevice(mac); + BluetoothDevice &device = adapter->getDevice(mac); scan_callback(device); |