We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e53bbf9 commit ba141e9Copy full SHA for ba141e9
src/NimBLEAdvertisedDevice.cpp
@@ -189,6 +189,15 @@ NimBLEUUID NimBLEAdvertisedDevice::getServiceUUID(uint8_t index) {
189
} // getServiceUUID
190
191
192
+/**
193
+ * @brief Get the number of services advertised
194
+ * @return The count of services in the advertising packet.
195
+ */
196
+size_t NimBLEAdvertisedDevice::getServiceUUIDCount() {
197
+ return m_serviceUUIDs.size();
198
+} // getServiceUUIDCount
199
+
200
201
/**
202
* @brief Check advertised services for existance of the required UUID
203
* @return Return true if service is advertised
0 commit comments