From 492bcf6f7801874a51d32fc527435b5b65b9ef41 Mon Sep 17 00:00:00 2001 From: h2zero Date: Sat, 15 Aug 2020 07:40:01 -0600 Subject: [PATCH] Add undefined getServiceUUIDCount() --- src/NimBLEAdvertisedDevice.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NimBLEAdvertisedDevice.cpp b/src/NimBLEAdvertisedDevice.cpp index f77ad5e..992b1f3 100644 --- a/src/NimBLEAdvertisedDevice.cpp +++ b/src/NimBLEAdvertisedDevice.cpp @@ -189,6 +189,15 @@ NimBLEUUID NimBLEAdvertisedDevice::getServiceUUID(uint8_t index) { } // getServiceUUID +/** + * @brief Get the number of services advertised + * @return The count of services in the advertising packet. + */ +size_t NimBLEAdvertisedDevice::getServiceUUIDCount() { + return m_serviceUUIDs.size(); +} // getServiceUUIDCount + + /** * @brief Check advertised services for existance of the required UUID * @return Return true if service is advertised