aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-11-03 04:11:53 +0100
committerSven Gothel <[email protected]>2021-11-03 04:11:53 +0100
commit8e9a05ce905afc58d6c1638eda0aa2a5caf5e907 (patch)
tree1253d2e45e006744d99a663b95dc4c624c4c6bad /api
parent75c49ecbfe59910ae41adbca54c2612728ed066e (diff)
BTGattHandler::findCharacterisicsByValueHandle(): Cleanup usage and argument order
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/BTGattHandler.hpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/api/direct_bt/BTGattHandler.hpp b/api/direct_bt/BTGattHandler.hpp
index 9e3986e8..fd069c22 100644
--- a/api/direct_bt/BTGattHandler.hpp
+++ b/api/direct_bt/BTGattHandler.hpp
@@ -311,22 +311,13 @@ namespace direct_bt {
inline uint16_t getUsedMTU() const noexcept { return usedMTU; }
/**
- * Find and return the BTGattChar within internal primary services
- * via given characteristic value handle.
- * <p>
- * Returns nullptr if not found.
- * </p>
- */
- BTGattCharRef findCharacterisicsByValueHandle(const uint16_t charValueHandle) noexcept;
-
- /**
* Find and return the BTGattChar within given list of primary services
* via given characteristic value handle.
* <p>
* Returns nullptr if not found.
* </p>
*/
- BTGattCharRef findCharacterisicsByValueHandle(const uint16_t charValueHandle, jau::darray<BTGattServiceRef> &services) noexcept;
+ BTGattCharRef findCharacterisicsByValueHandle(const jau::darray<BTGattServiceRef> &services_, const uint16_t charValueHandle) noexcept;
/**
* Find and return the BTGattChar within given primary service
@@ -335,7 +326,7 @@ namespace direct_bt {
* Returns nullptr if not found.
* </p>
*/
- BTGattCharRef findCharacterisicsByValueHandle(const uint16_t charValueHandle, BTGattServiceRef service) noexcept;
+ BTGattCharRef findCharacterisicsByValueHandle(const BTGattServiceRef service, const uint16_t charValueHandle) noexcept;
/**
* Discover all primary services _and_ all its characteristics declarations