diff options
author | Sven Gothel <[email protected]> | 2022-01-29 03:45:41 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-01-29 03:45:41 +0100 |
commit | d7992842f7cfaff04d9c6e20d3707fd5856bf0f2 (patch) | |
tree | 0f0a7d4ee1e3b82c5c66efa69d61fe9ef99d0652 /src | |
parent | f1510640672b5055a81322d12c5521aa663581be (diff) |
BTAdapter: Expose `getBTMajorVersion()` in C++ and Java, removing hasHCIExtScan(), hasHCIExtConn() and hasHCIExtAdv()
Diffstat (limited to 'src')
-rw-r--r-- | src/direct_bt/BTAdapter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/direct_bt/BTAdapter.cpp b/src/direct_bt/BTAdapter.cpp index 1f8d873a..c92ce856 100644 --- a/src/direct_bt/BTAdapter.cpp +++ b/src/direct_bt/BTAdapter.cpp @@ -1500,15 +1500,13 @@ HCIStatusCode BTAdapter::stopAdvertising() noexcept { std::string BTAdapter::toString(bool includeDiscoveredDevices) const noexcept { std::string random_address_info = adapterInfo.addressAndType != visibleAddressAndType ? " ("+visibleAddressAndType.toString()+")" : ""; - std::string out("Adapter[BTMode "+to_string(getBTMode())+", "+to_string(getRole())+", "+adapterInfo.addressAndType.toString()+random_address_info+ + std::string out("Adapter[BT "+std::to_string(getBTMajorVersion())+", BTMode "+to_string(getBTMode())+", "+to_string(getRole())+", "+adapterInfo.addressAndType.toString()+random_address_info+ ", '"+getName()+"', id "+std::to_string(dev_id)+ ", curSettings"+to_string(adapterInfo.getCurrentSettingMask())+ ", valid "+std::to_string(isValid())+ ", adv "+std::to_string(hci.isAdvertising())+ ", scanType[native "+to_string(hci.getCurrentScanType())+", meta "+to_string(currentMetaScanType)+"]" - ", hci_ext[scan "+std::to_string(hci_uses_ext_scan)+", conn "+std::to_string(hci_uses_ext_conn)+ - ", adv "+std::to_string(hci_uses_ext_adv)+ - "], open[mgmt, "+std::to_string(mgmt.isOpen())+", hci "+std::to_string(hci.isOpen())+ + ", open[mgmt, "+std::to_string(mgmt.isOpen())+", hci "+std::to_string(hci.isOpen())+ "], "+l2cap_att_srv.toString()+", "+javaObjectToString()+"]"); if( includeDiscoveredDevices ) { device_list_t devices = getDiscoveredDevices(); |