diff --git a/headers/os/bluetooth/RemoteDevice.h b/headers/os/bluetooth/RemoteDevice.h index 23a0d97ae4..8220dc3d02 100644 --- a/headers/os/bluetooth/RemoteDevice.h +++ b/headers/os/bluetooth/RemoteDevice.h @@ -30,7 +30,7 @@ class RemoteDevice { bool IsTrustedDevice(); BString GetFriendlyName(bool alwaysAsk); /* Throwing */ - BString GetBluetoothAddress(); + bdaddr_t GetBluetoothAddress(); bool Equals(RemoteDevice* obj); /*static RemoteDevice* GetRemoteDevice(Connection conn); Throwing */ diff --git a/headers/os/bluetooth/bdaddrUtils.h b/headers/os/bluetooth/bdaddrUtils.h index 80f657f0a0..710c99458b 100644 --- a/headers/os/bluetooth/bdaddrUtils.h +++ b/headers/os/bluetooth/bdaddrUtils.h @@ -38,6 +38,12 @@ class bdaddrUtils { } + static bool Compare(bdaddr_t* ba1, bdaddr_t* ba2) + { + return (memcmp(ba1, ba2, sizeof(bdaddr_t)) == 0); + } + + static char* ToString(const bdaddr_t bdaddr) { // TODO: not safe