ble

Dependencies:   HC_SR04_Ultrasonic_Library Servo mbed

Fork of FIP_REV1 by Robotique FIP

Committer:
julientiron
Date:
Thu Jul 09 13:33:36 2015 +0000
Revision:
4:69a35a56ac48
Parent:
0:3d641e170a74
BLE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
julientiron 0:3d641e170a74 1 /* mbed Microcontroller Library
julientiron 0:3d641e170a74 2 * Copyright (c) 2006-2013 ARM Limited
julientiron 0:3d641e170a74 3 *
julientiron 0:3d641e170a74 4 * Licensed under the Apache License, Version 2.0 (the "License");
julientiron 0:3d641e170a74 5 * you may not use this file except in compliance with the License.
julientiron 0:3d641e170a74 6 * You may obtain a copy of the License at
julientiron 0:3d641e170a74 7 *
julientiron 0:3d641e170a74 8 * http://www.apache.org/licenses/LICENSE-2.0
julientiron 0:3d641e170a74 9 *
julientiron 0:3d641e170a74 10 * Unless required by applicable law or agreed to in writing, software
julientiron 0:3d641e170a74 11 * distributed under the License is distributed on an "AS IS" BASIS,
julientiron 0:3d641e170a74 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
julientiron 0:3d641e170a74 13 * See the License for the specific language governing permissions and
julientiron 0:3d641e170a74 14 * limitations under the License.
julientiron 0:3d641e170a74 15 */
julientiron 0:3d641e170a74 16
julientiron 0:3d641e170a74 17
julientiron 0:3d641e170a74 18 #include <stdio.h>
julientiron 0:3d641e170a74 19 #include <string.h>
julientiron 0:3d641e170a74 20
julientiron 0:3d641e170a74 21 #include "GattService.h"
julientiron 0:3d641e170a74 22
julientiron 0:3d641e170a74 23 /**************************************************************************/
julientiron 0:3d641e170a74 24 /*!
julientiron 0:3d641e170a74 25 @brief Creates a new GattService using the specified 128-bit UUID
julientiron 0:3d641e170a74 26
julientiron 0:3d641e170a74 27 @note The UUID value must be unique on the device
julientiron 0:3d641e170a74 28
julientiron 0:3d641e170a74 29 @param[in] uuid
julientiron 0:3d641e170a74 30 The 16 byte (128-bit) UUID to use for this characteristic
julientiron 0:3d641e170a74 31
julientiron 0:3d641e170a74 32 @section EXAMPLE
julientiron 0:3d641e170a74 33
julientiron 0:3d641e170a74 34 @code
julientiron 0:3d641e170a74 35
julientiron 0:3d641e170a74 36 @endcode
julientiron 0:3d641e170a74 37 */
julientiron 0:3d641e170a74 38 /**************************************************************************/
julientiron 0:3d641e170a74 39 GattService::GattService(const UUID &uuid, GattCharacteristic *characteristics[], unsigned numCharacteristics) :
julientiron 0:3d641e170a74 40 _primaryServiceID(uuid), _characteristicCount(numCharacteristics), _characteristics(characteristics), _handle(0)
julientiron 0:3d641e170a74 41 {
julientiron 0:3d641e170a74 42 /* empty */
julientiron 0:3d641e170a74 43 }