Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle_discovery.h
- Revision:
- 295:5566c7b83bb5
- Parent:
- 293:cd86acfe41be
- Child:
- 299:19064275c0e0
diff -r a2219bad9d4a -r 5566c7b83bb5 btle/btle_discovery.h --- a/btle/btle_discovery.h Fri Jun 19 15:55:28 2015 +0100 +++ b/btle/btle_discovery.h Fri Jun 19 15:55:28 2015 +0100 @@ -131,6 +131,9 @@ void append(int serviceIndex) { serviceIndices[numIndices++] = serviceIndex; } + unsigned getFirst(void) const { + return serviceIndices[0]; + } void removeFirst(void) { numIndices--; for (unsigned index = 0; index < numIndices; index++) {