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
source/nRF51GattClient.cpp@372:758e9a3a346a, 2015-07-06 (annotated)
- Committer:
- rgrover1
- Date:
- Mon Jul 06 10:21:00 2015 +0100
- Revision:
- 372:758e9a3a346a
- Parent:
- nRF51GattClient.cpp@344:2a44e5fd26bc
Synchronized with git rev 488e2462
Author: James Crosby
restructure to yotta module, with a few tweaks to get things building
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rgrover1 | 344:2a44e5fd26bc | 1 | /* mbed Microcontroller Library |
| rgrover1 | 344:2a44e5fd26bc | 2 | * Copyright (c) 2006-2013 ARM Limited |
| rgrover1 | 344:2a44e5fd26bc | 3 | * |
| rgrover1 | 344:2a44e5fd26bc | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| rgrover1 | 344:2a44e5fd26bc | 5 | * you may not use this file except in compliance with the License. |
| rgrover1 | 344:2a44e5fd26bc | 6 | * You may obtain a copy of the License at |
| rgrover1 | 344:2a44e5fd26bc | 7 | * |
| rgrover1 | 344:2a44e5fd26bc | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| rgrover1 | 344:2a44e5fd26bc | 9 | * |
| rgrover1 | 344:2a44e5fd26bc | 10 | * Unless required by applicable law or agreed to in writing, software |
| rgrover1 | 344:2a44e5fd26bc | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| rgrover1 | 344:2a44e5fd26bc | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| rgrover1 | 344:2a44e5fd26bc | 13 | * See the License for the specific language governing permissions and |
| rgrover1 | 344:2a44e5fd26bc | 14 | * limitations under the License. |
| rgrover1 | 344:2a44e5fd26bc | 15 | */ |
| rgrover1 | 344:2a44e5fd26bc | 16 | |
| rgrover1 | 344:2a44e5fd26bc | 17 | #include "nRF51GattClient.h" |
| rgrover1 | 344:2a44e5fd26bc | 18 | |
| rgrover1 | 344:2a44e5fd26bc | 19 | nRF51GattClient nRFGattClientSingleton; |
| rgrover1 | 344:2a44e5fd26bc | 20 | |
| rgrover1 | 344:2a44e5fd26bc | 21 | nRF51GattClient & |
| rgrover1 | 344:2a44e5fd26bc | 22 | nRF51GattClient::getInstance(void) { |
| rgrover1 | 344:2a44e5fd26bc | 23 | return nRFGattClientSingleton; |
| rgrover1 | 344:2a44e5fd26bc | 24 | } |
| rgrover1 | 344:2a44e5fd26bc | 25 | |
| rgrover1 | 344:2a44e5fd26bc | 26 | ble_error_t |
| rgrover1 | 344:2a44e5fd26bc | 27 | nRF51GattClient::launchServiceDiscovery(Gap::Handle_t connectionHandle, |
| rgrover1 | 344:2a44e5fd26bc | 28 | ServiceDiscovery::ServiceCallback_t sc, |
| rgrover1 | 344:2a44e5fd26bc | 29 | ServiceDiscovery::CharacteristicCallback_t cc, |
| rgrover1 | 344:2a44e5fd26bc | 30 | const UUID &matchingServiceUUIDIn, |
| rgrover1 | 344:2a44e5fd26bc | 31 | const UUID &matchingCharacteristicUUIDIn) |
| rgrover1 | 344:2a44e5fd26bc | 32 | { |
| rgrover1 | 344:2a44e5fd26bc | 33 | return discovery.launch(connectionHandle, sc, cc, matchingServiceUUIDIn, matchingCharacteristicUUIDIn); |
| rgrover1 | 344:2a44e5fd26bc | 34 | } |
