diff options
author | Sven Gothel <[email protected]> | 2020-11-21 10:10:50 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-11-21 10:10:50 +0100 |
commit | d198eb507eba0e6d920698086726e750749f6305 (patch) | |
tree | e26d356fce8ef1d7bc76c7b0c9f880645a2d13cf | |
parent | ea2e834d8c7f46653df346bc24f035ffb12b36f7 (diff) |
DBTDevice toString(): Add BTSecurityLevel
-rw-r--r-- | src/direct_bt/DBTDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp index f68512ca..e4d00fdd 100644 --- a/src/direct_bt/DBTDevice.cpp +++ b/src/direct_bt/DBTDevice.cpp @@ -142,7 +142,7 @@ std::string DBTDevice::toString(bool includeDiscoveredServices) const noexcept { std::string out("Device[address["+getAddressString()+", "+getBDAddressTypeString(getAddressType())+leaddrtype+"], name['"+name+ "'], age[total "+std::to_string(t0-ts_creation)+", ldisc "+std::to_string(t0-ts_last_discovery)+", lup "+std::to_string(t0-ts_last_update)+ "]ms, connected["+std::to_string(allowDisconnect)+"/"+std::to_string(isConnected)+", handle "+jau::uint16HexString(hciConnHandle)+ - "], pairing "+getPairingModeString(pairing_data.mode).c_str()+", rssi "+std::to_string(getRSSI())+ + "], security "+getBTSecurityLevelString(pairing_data.sec_level).c_str()+", pairing "+getPairingModeString(pairing_data.mode).c_str()+", rssi "+std::to_string(getRSSI())+ ", tx-power "+std::to_string(tx_power)+ ", appearance "+jau::uint16HexString(static_cast<uint16_t>(appearance))+" ("+getAppearanceCatString(appearance)+ "), "+msdstr+", "+javaObjectToString()+"]"); |