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:
- 34:da2ea8cd6216
- Parent:
- 31:2c94f0501807
- Child:
- 53:a1bec483c8e3
diff -r 6d51a2c69442 -r da2ea8cd6216 GattService.cpp
--- a/GattService.cpp Thu Apr 03 01:45:33 2014 +0100
+++ b/GattService.cpp Wed May 21 15:01:14 2014 +0100
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
#include <stdio.h>
#include <string.h>
@@ -23,7 +23,7 @@
/**************************************************************************/
/*!
@brief Creates a new GattService using the specified 128-bit UUID
-
+
@note The UUID value must be unique on the device
@param[in] uuid
@@ -32,7 +32,7 @@
@section EXAMPLE
@code
-
+
@endcode
*/
/**************************************************************************/
@@ -40,13 +40,13 @@
{
primaryServiceID.update(base_uuid);
characteristicCount = 0;
- handle = 0;
+ handle = 0;
}
/**************************************************************************/
/*!
@brief Creates a new GattService using the specified 16-bit BLE UUID
-
+
@param[in] ble_uuid
The standardised 16-bit (2 byte) BLE UUID to use for this
characteristic
@@ -54,7 +54,7 @@
@section EXAMPLE
@code
-
+
@endcode
*/
/**************************************************************************/
@@ -62,7 +62,7 @@
{
primaryServiceID.update( ble_uuid );
characteristicCount = 0;
- handle = 0;
+ handle = 0;
}
/**************************************************************************/
@@ -77,10 +77,10 @@
/**************************************************************************/
/*!
@brief Adds a GattCharacterisic to the service.
-
+
@note This function will not update the .handle field in the
GattCharacteristic. This value is updated when the parent
- service is added via the radio driver.
+ service is added via the radio driver.
@param[in] characteristic
The GattCharacteristic object describing the characteristic
@@ -94,7 +94,7 @@
@section EXAMPLE
@code
-
+
@endcode
*/
/**************************************************************************/
@@ -106,6 +106,6 @@
characteristics[characteristicCount] = &characteristic;
characteristicCount++;
-
+
return BLE_ERROR_NONE;
}
