mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
Add undefined getServiceUUIDCount()
This commit is contained in:
parent
17d53432a6
commit
492bcf6f78
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue