diff options
author | Sven Gothel <[email protected]> | 2020-06-27 12:38:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-06-27 12:38:00 +0200 |
commit | 406c56e2ebe96358ffd6000b033e0f99f87c66ac (patch) | |
tree | 49f52b1a69a9c2b9de674c2372958386ff7eebf6 /api/direct_bt/DBTManager.hpp | |
parent | aeb0f54cc1e622324ce06edff342180500e4ccd1 (diff) |
Use HCIHandler *connect*/disconnect; Enhance native + java test
Use HCIHandler *connect*/disconnect incl related events (Drop DBTManager in this regard)
> Add CONNECT_FAILED HCI listener mgmtEvConnectFailedHCI
-- Issuing a DISCONNECT event
> DBTAdapter: mgmtEvDeviceConnectedHCI
-- Always pass through, just issue WARNING if not a new_connect (TBD)
> DBTAdapter: mgmtEvDeviceDisconnectedHCI + mgmtEvDeviceConnectedHCI
-- removeConnectedDevice pre event issuing
-- removeDiscoveredDevice post event issuing
> DBTDevice:
-- Add isConnectIssued to differentiate isConnected on event
-- Only use HCIHandler's *connect*/disconnect
-- disconnect(..) no more issues removeConnectedDevice, rely ion correct event issuing/handling,
as performed in time @ mgmtEvDeviceDisconnectedHCI...
-- remove() issues removeConnectedDevice and removeDiscoveredDevice pre releaseSharedInstance
to ensure a clean tracking state. The whole purpose of this command.
+++
Enhance native + java test
After disconnect() wait (poll) until no more connected, before issuing remove(),
this shall ensure proper workflow pre remove() - validation of disconnect command.
Diffstat (limited to 'api/direct_bt/DBTManager.hpp')
-rw-r--r-- | api/direct_bt/DBTManager.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/api/direct_bt/DBTManager.hpp b/api/direct_bt/DBTManager.hpp index 0a6acac4..7a363bae 100644 --- a/api/direct_bt/DBTManager.hpp +++ b/api/direct_bt/DBTManager.hpp @@ -254,14 +254,6 @@ namespace direct_bt { /** Remove all previously added devices from the autoconnect whitelist. Returns number of removed devices. */ int removeAllDevicesFromWhitelist(); - uint16_t create_connection(const int dev_id, - const EUI48 &peer_bdaddr, - const BDAddressType peer_mac_type, - const BDAddressType own_mac_type=BDADDR_LE_PUBLIC, - const uint16_t interval=0x0004, const uint16_t window=0x0004, - const uint16_t min_interval=0x000F, const uint16_t max_interval=0x000F, - const uint16_t latency=0x0000, const uint16_t supervision_timeout=number(HCIConstInt::LE_CONN_TIMEOUT_MS)/10); - bool disconnect(const bool ioErrorCause, const int dev_id, const EUI48 &peer_bdaddr, const BDAddressType peer_mac_type, const HCIStatusCode reason=HCIStatusCode::REMOTE_USER_TERMINATED_CONNECTION ); |