diff options
author | Sven Gothel <[email protected]> | 2020-06-24 23:13:25 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-06-24 23:13:25 +0200 |
commit | bb5e23e940be93b10f983a97c6b3ffb04ea6d729 (patch) | |
tree | 98d64282b27b4c926570cf6409f1fce5c4c188b2 /api | |
parent | cb17c522a3d0e2c268b7f283c8f032a9c4a6f446 (diff) |
DBTAdapter:: removeDiscoveredDevice(..) after mgmtEvDeviceDisconnectedCB processed, allowing deviceFound event after disconnect.v2.1.6
The remaining device within adapter's discoveredDevicesList caused the 'mgmtEvDeviceFoundCB'
to not expose the disconnected device via AdapterStatusListener callbacks.
Only a stop- and startDiscovery would have resolved such 'timing' issue.
Therefor, we shall assume a disconnected device not to be discovered yet
and hence enable it to be found again.
Diffstat (limited to 'api')
-rw-r--r-- | api/direct_bt/DBTAdapter.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp index fbb1fab4..7e4fb9e2 100644 --- a/api/direct_bt/DBTAdapter.hpp +++ b/api/direct_bt/DBTAdapter.hpp @@ -189,6 +189,7 @@ namespace direct_bt { std::shared_ptr<DBTDevice> findConnectedDevice (EUI48 const & mac) const; bool addDiscoveredDevice(std::shared_ptr<DBTDevice> const &device); + bool removeDiscoveredDevice(const DBTDevice & device); bool addSharedDevice(std::shared_ptr<DBTDevice> const &device); std::shared_ptr<DBTDevice> getSharedDevice(const DBTDevice & device); |