diff options
author | Sven Gothel <[email protected]> | 2023-10-22 05:32:36 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-10-22 05:32:36 +0200 |
commit | fec99c59a6b638b17f827e5bfd3539f27190448b (patch) | |
tree | 1d379f09df3841e32d3ab811985ac84a5bf87d84 /api | |
parent | 74af7dc765d9402d92aebebce350ad3f5beaaee2 (diff) |
Adapter Random Address: Add visibleMACType = HCILEOwnAddressType::PUBLIC and use it for BTAdapter::startDiscovery() and BTDevice::connectLE()
Diffstat (limited to 'api')
-rw-r--r-- | api/direct_bt/BTAdapter.hpp | 3 | ||||
-rw-r--r-- | api/direct_bt/BTAddress.hpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/api/direct_bt/BTAdapter.hpp b/api/direct_bt/BTAdapter.hpp index 27e4ee94..a01acff9 100644 --- a/api/direct_bt/BTAdapter.hpp +++ b/api/direct_bt/BTAdapter.hpp @@ -345,9 +345,10 @@ namespace direct_bt { bool hci_uses_ext_adv; /** - * Either the adapter's initially reported public address or a random address setup via HCI before discovery or advertising. + * Either the adapter's initially reported public identity address or a random address setup via HCI before discovery or advertising. */ BDAddressAndType visibleAddressAndType; + HCILEOwnAddressType visibleMACType; public: typedef jau::nsize_t size_type; diff --git a/api/direct_bt/BTAddress.hpp b/api/direct_bt/BTAddress.hpp index 29530adf..493f8d6d 100644 --- a/api/direct_bt/BTAddress.hpp +++ b/api/direct_bt/BTAddress.hpp @@ -160,7 +160,7 @@ namespace direct_bt { }; constexpr uint8_t number(const HCILEOwnAddressType rhs) noexcept { return static_cast<uint8_t>(rhs); } BDAddressType to_BDAddressType(const HCILEOwnAddressType hciOwnAddrType) noexcept; - HCILEOwnAddressType to_HCILEOwnAddressType(const BDAddressType addrType) noexcept; + HCILEOwnAddressType to_HCILEOwnAddressType(const BDAddressType addrType, bool resolvable) noexcept; std::string to_string(const HCILEOwnAddressType type) noexcept; |