test firmware for BLE Micro V1.3 1. test io, vcc and ble 2. act as a UART to BLE bridge

Dependencies:   BLE_API Buffer mbed

Fork of BLE_LEDBlinker by Bluetooth Low Energy

Committer:
arch
Date:
Tue Dec 08 06:02:25 2015 +0000
Revision:
11:c8cbc4bc2c17
test firmware for BLE Micro V1.3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arch 11:c8cbc4bc2c17 1 /* mbed Microcontroller Library
arch 11:c8cbc4bc2c17 2 * Copyright (c) 2006-2013 ARM Limited
arch 11:c8cbc4bc2c17 3 *
arch 11:c8cbc4bc2c17 4 * Licensed under the Apache License, Version 2.0 (the "License");
arch 11:c8cbc4bc2c17 5 * you may not use this file except in compliance with the License.
arch 11:c8cbc4bc2c17 6 * You may obtain a copy of the License at
arch 11:c8cbc4bc2c17 7 *
arch 11:c8cbc4bc2c17 8 * http://www.apache.org/licenses/LICENSE-2.0
arch 11:c8cbc4bc2c17 9 *
arch 11:c8cbc4bc2c17 10 * Unless required by applicable law or agreed to in writing, software
arch 11:c8cbc4bc2c17 11 * distributed under the License is distributed on an "AS IS" BASIS,
arch 11:c8cbc4bc2c17 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
arch 11:c8cbc4bc2c17 13 * See the License for the specific language governing permissions and
arch 11:c8cbc4bc2c17 14 * limitations under the License.
arch 11:c8cbc4bc2c17 15 */
arch 11:c8cbc4bc2c17 16
arch 11:c8cbc4bc2c17 17 #include "nRF5xGattClient.h"
arch 11:c8cbc4bc2c17 18
arch 11:c8cbc4bc2c17 19 nRF5xGattClient &
arch 11:c8cbc4bc2c17 20 nRF5xGattClient::getInstance(void) {
arch 11:c8cbc4bc2c17 21 static nRF5xGattClient* nRFGattClientSingleton = NULL;
arch 11:c8cbc4bc2c17 22 if (nRFGattClientSingleton == NULL) {
arch 11:c8cbc4bc2c17 23 nRFGattClientSingleton = new nRF5xGattClient();
arch 11:c8cbc4bc2c17 24 }
arch 11:c8cbc4bc2c17 25 return *nRFGattClientSingleton;
arch 11:c8cbc4bc2c17 26 }
arch 11:c8cbc4bc2c17 27
arch 11:c8cbc4bc2c17 28 #if !defined(TARGET_MCU_NRF51_16K_S110) && !defined(TARGET_MCU_NRF51_32K_S110)
arch 11:c8cbc4bc2c17 29 ble_error_t
arch 11:c8cbc4bc2c17 30 nRF5xGattClient::launchServiceDiscovery(Gap::Handle_t connectionHandle,
arch 11:c8cbc4bc2c17 31 ServiceDiscovery::ServiceCallback_t sc,
arch 11:c8cbc4bc2c17 32 ServiceDiscovery::CharacteristicCallback_t cc,
arch 11:c8cbc4bc2c17 33 const UUID &matchingServiceUUIDIn,
arch 11:c8cbc4bc2c17 34 const UUID &matchingCharacteristicUUIDIn)
arch 11:c8cbc4bc2c17 35 {
arch 11:c8cbc4bc2c17 36 return discovery.launch(connectionHandle, sc, cc, matchingServiceUUIDIn, matchingCharacteristicUUIDIn);
arch 11:c8cbc4bc2c17 37 }
arch 11:c8cbc4bc2c17 38 #endif