Add undefined getServiceUUIDCount()

This commit is contained in:
h2zero 2020-08-15 07:40:01 -06:00
parent 17d53432a6
commit 492bcf6f78

View file

@ -189,6 +189,15 @@ NimBLEUUID NimBLEAdvertisedDevice::getServiceUUID(uint8_t index) {
} // getServiceUUID } // 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 * @brief Check advertised services for existance of the required UUID
* @return Return true if service is advertised * @return Return true if service is advertised