Skip to content

Commit ba141e9

Browse files
committed
Add undefined getServiceUUIDCount(), fixes #114
1 parent e53bbf9 commit ba141e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/NimBLEAdvertisedDevice.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@ NimBLEUUID NimBLEAdvertisedDevice::getServiceUUID(uint8_t index) {
189189
} // getServiceUUID
190190

191191

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+
192201
/**
193202
* @brief Check advertised services for existance of the required UUID
194203
* @return Return true if service is advertised

0 commit comments

Comments
 (0)