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-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
common/GattService.cpp@329:2e082a9c7c13, 2015-04-15 (annotated)
- Committer:
- rgrover1
- Date:
- Wed Apr 15 09:05:10 2015 +0100
- Revision:
- 329:2e082a9c7c13
- Parent:
- 260:ea7f9f14cc15
Synchronized with git rev 995d4797
Author: Rohit Grover
merge GapAdvertisingParams.cpp into GapAdvertisingParams.h;
also get rid of the empty virtual destructor.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rgrover1 | 260:ea7f9f14cc15 | 1 | /* mbed Microcontroller Library |
| rgrover1 | 260:ea7f9f14cc15 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| rgrover1 | 260:ea7f9f14cc15 | 3 | * |
| rgrover1 | 260:ea7f9f14cc15 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| rgrover1 | 260:ea7f9f14cc15 | 5 | * you may not use this file except in compliance with the License. |
| rgrover1 | 260:ea7f9f14cc15 | 6 | * You may obtain a copy of the License at |
| rgrover1 | 260:ea7f9f14cc15 | 7 | * |
| rgrover1 | 260:ea7f9f14cc15 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| rgrover1 | 260:ea7f9f14cc15 | 9 | * |
| rgrover1 | 260:ea7f9f14cc15 | 10 | * Unless required by applicable law or agreed to in writing, software |
| rgrover1 | 260:ea7f9f14cc15 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| rgrover1 | 260:ea7f9f14cc15 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| rgrover1 | 260:ea7f9f14cc15 | 13 | * See the License for the specific language governing permissions and |
| rgrover1 | 260:ea7f9f14cc15 | 14 | * limitations under the License. |
| rgrover1 | 260:ea7f9f14cc15 | 15 | */ |
| rgrover1 | 260:ea7f9f14cc15 | 16 | |
| rgrover1 | 260:ea7f9f14cc15 | 17 | |
| rgrover1 | 260:ea7f9f14cc15 | 18 | #include <stdio.h> |
| rgrover1 | 260:ea7f9f14cc15 | 19 | #include <string.h> |
| rgrover1 | 260:ea7f9f14cc15 | 20 | |
| rgrover1 | 260:ea7f9f14cc15 | 21 | #include "GattService.h" |
| rgrover1 | 260:ea7f9f14cc15 | 22 | |
| rgrover1 | 260:ea7f9f14cc15 | 23 | /**************************************************************************/ |
| rgrover1 | 260:ea7f9f14cc15 | 24 | /*! |
| rgrover1 | 260:ea7f9f14cc15 | 25 | @brief Creates a new GattService using the specified 128-bit UUID |
| rgrover1 | 260:ea7f9f14cc15 | 26 | |
| rgrover1 | 260:ea7f9f14cc15 | 27 | @note The UUID value must be unique on the device |
| rgrover1 | 260:ea7f9f14cc15 | 28 | |
| rgrover1 | 260:ea7f9f14cc15 | 29 | @param[in] uuid |
| rgrover1 | 260:ea7f9f14cc15 | 30 | The 16 byte (128-bit) UUID to use for this characteristic |
| rgrover1 | 260:ea7f9f14cc15 | 31 | |
| rgrover1 | 260:ea7f9f14cc15 | 32 | @section EXAMPLE |
| rgrover1 | 260:ea7f9f14cc15 | 33 | |
| rgrover1 | 260:ea7f9f14cc15 | 34 | @code |
| rgrover1 | 260:ea7f9f14cc15 | 35 | |
| rgrover1 | 260:ea7f9f14cc15 | 36 | @endcode |
| rgrover1 | 260:ea7f9f14cc15 | 37 | */ |
| rgrover1 | 260:ea7f9f14cc15 | 38 | /**************************************************************************/ |
| rgrover1 | 260:ea7f9f14cc15 | 39 | GattService::GattService(const UUID &uuid, GattCharacteristic *characteristics[], unsigned numCharacteristics) : |
| rgrover1 | 260:ea7f9f14cc15 | 40 | _primaryServiceID(uuid), _characteristicCount(numCharacteristics), _characteristics(characteristics), _handle(0) |
| rgrover1 | 260:ea7f9f14cc15 | 41 | { |
| rgrover1 | 260:ea7f9f14cc15 | 42 | /* empty */ |
| rgrover1 | 260:ea7f9f14cc15 | 43 | } |
