diff options
author | Sven Gothel <[email protected]> | 2021-10-27 07:26:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-27 07:26:31 +0200 |
commit | dfec6813cd970049c7baf7c31d40e91fd56111ca (patch) | |
tree | b770981fc056951e07f370f2d7baf5b8b81de024 /api/direct_bt/BTAdapter.hpp | |
parent | 7991e4ad41e7e3baf21cf499bfc04380ec4f4206 (diff) |
Add BTAdapter::setSecureConnections(bool) (C++/Java): Allow testing peripheral with legacy mode
Diffstat (limited to 'api/direct_bt/BTAdapter.hpp')
-rw-r--r-- | api/direct_bt/BTAdapter.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/api/direct_bt/BTAdapter.hpp b/api/direct_bt/BTAdapter.hpp index 531c7cfc..b01b7554 100644 --- a/api/direct_bt/BTAdapter.hpp +++ b/api/direct_bt/BTAdapter.hpp @@ -612,7 +612,17 @@ namespace direct_bt { * @see close() * @see initialize() */ - bool setPowered(bool power_on) noexcept; + bool setPowered(const bool power_on) noexcept; + + /** + * Enable or disable Secure Connections (SC) of the adapter. + * + * By default, Secure Connections (SC) is enabled if supported. + * + * @param enable + * @since 2.4.0 + */ + bool setSecureConnections(const bool enable) noexcept; /** * Initialize the adapter with default values, including power-on. |