aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-04-11 12:40:22 +0200
committerSven Gothel <[email protected]>2022-04-11 12:40:22 +0200
commit3a8f93bdbaef686f8178c2f7f06779e6a757ce15 (patch)
tree79f3546c0515b79f7616bf9714b1f6ab6d6c3b87 /api
parentcbf903ff90321f2c010676f5beafe28afe686066 (diff)
Align C++ -> Java BTGattChar::get[ClientCharConfig,UserDescription]() and add API doc
Reorder the java code a little to better match C++
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/BTGattChar.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/direct_bt/BTGattChar.hpp b/api/direct_bt/BTGattChar.hpp
index e4218b2f..ad739be2 100644
--- a/api/direct_bt/BTGattChar.hpp
+++ b/api/direct_bt/BTGattChar.hpp
@@ -218,6 +218,12 @@ namespace direct_bt {
userDescriptionIndex = -1;
}
+ /**
+ * Return the Client Characteristic Configuration BTGattDescRef if available or nullptr.
+ *
+ * The BTGattDesc::Type::CLIENT_CHARACTERISTIC_CONFIGURATION has been indexed while
+ * retrieving the GATT database from the server.
+ */
BTGattDescRef getClientCharConfig() const noexcept {
if( 0 > clientCharConfigIndex ) {
return nullptr;
@@ -225,6 +231,12 @@ namespace direct_bt {
return descriptorList.at(static_cast<size_t>(clientCharConfigIndex)); // abort if out of bounds
}
+ /**
+ * Return the User Description BTGattDescRef if available or nullptr.
+ *
+ * The BTGattDesc::Type::CHARACTERISTIC_USER_DESCRIPTION has been indexed while
+ * retrieving the GATT database from the server.
+ */
BTGattDescRef getUserDescription() const noexcept {
if( 0 > userDescriptionIndex ) {
return nullptr;