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.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: nRF51GattServer.h
- Revision:
- 369:7455428e5ddb
- Parent:
- 368:c272fec04dab
- Child:
- 370:295f76db798e
--- a/nRF51GattServer.h Thu Jul 02 09:08:45 2015 +0100
+++ b/nRF51GattServer.h Thu Jul 02 09:08:45 2015 +0100
@@ -52,7 +52,7 @@
* @param valueHandle the value handle to be resolved.
* @return characteristic index if a resolution is found, else -1.
*/
- int resolveValueHandleToCharIndex(GattAttribute::Handle_t valueHandle) {
+ int resolveValueHandleToCharIndex(GattAttribute::Handle_t valueHandle) const {
unsigned charIndex;
for (charIndex = 0; charIndex < characteristicCount; charIndex++) {
if (nrfCharacteristicHandles[charIndex].value_handle == valueHandle) {
@@ -68,7 +68,7 @@
* @param cccdHandle the CCCD handle to be resolved.
* @return characteristic index if a resolution is found, else -1.
*/
- int resolveCCCDHandleToCharIndex(GattAttribute::Handle_t cccdHandle) {
+ int resolveCCCDHandleToCharIndex(GattAttribute::Handle_t cccdHandle) const {
unsigned charIndex;
for (charIndex = 0; charIndex < characteristicCount; charIndex++) {
if (nrfCharacteristicHandles[charIndex].cccd_handle == cccdHandle) {
