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 BLE_API by
Diff: GattService.cpp
- Revision:
- 11:200931be5617
- Parent:
- 2:ffc5216bd2cc
- Child:
- 23:f19c60478e1b
--- a/GattService.cpp Mon Dec 16 20:00:05 2013 +0000
+++ b/GattService.cpp Tue Dec 17 17:28:41 2013 +0000
@@ -24,7 +24,7 @@
primaryServiceID.update(base_uuid);
characteristicCount = 0;
memset(&characteristics, 0, sizeof(serialisedChar_t) * BLE_SERVICE_MAX_CHARACTERISTICS);
- index = 0;
+ handle = 0;
}
/**************************************************************************/
@@ -47,7 +47,7 @@
primaryServiceID.update( ble_uuid );
characteristicCount = 0;
memset(&characteristics, 0, sizeof(serialisedChar_t) * BLE_SERVICE_MAX_CHARACTERISTICS);
- index = 0;
+ handle = 0;
}
/**************************************************************************/
@@ -69,7 +69,7 @@
properties required to create the characteristic on the
target radio board.
- @note This function will update the .index field in the
+ @note This function will update the .handle field in the
GattCharacteristic to indicate where this characteristic was
stored in the GattService's characteristic array.
@@ -107,8 +107,8 @@
/* Insert the serialised object into the buffer */
memcpy(&characteristics[characteristicCount], &c, sizeof(serialisedChar_t));
- /* Update the index value */
- characteristic.index = characteristicCount;
+ /* Update the handle value */
+ characteristic.handle = characteristicCount;
characteristicCount++;
