Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
ble/DiscoveredCharacteristicDescriptor.h
- Committer:
- vcoubard
- Date:
- 2016-01-11
- Revision:
- 1068:704b281b4ba0
- Parent:
- 1067:350b4b04eeda
- Child:
- 1069:ec5549427b4a
File content as of revision 1068:704b281b4ba0:
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __DISCOVERED_CHARACTERISTIC_DESCRIPTOR_H__ #define __DISCOVERED_CHARACTERISTIC_DESCRIPTOR_H__ #include "UUID.h" #include "Gap.h" #include "GattAttribute.h" #include "GattClient.h" #include "CharacteristicDescriptorDiscovery.h" /** * */ class DiscoveredCharacteristicDescriptor { public: DiscoveredCharacteristicDescriptor( GattClient* client, Gap::Handle_t connectionHandle, GattAttribute::Handle_t gattHandle, const UUID& uuid) : _client(client), _connectionHandle(connectionHandle), _uuid(uuid), _gattHandle(gattHandle) { } GattClient* getGattClient() { return _client; } const GattClient* getGattClient() const { return _client; } Gap::Handle_t getConnectionHandle() const { return _connectionHandle; } const UUID& getUUID(void) const { return _uuid; } GattAttribute::Handle_t getAttributeHandle() const { return _gattHandle; } private: GattClient *_client; Gap::Handle_t _connectionHandle; UUID _uuid; GattAttribute::Handle_t _gattHandle; }; #endif /*__DISCOVERED_CHARACTERISTIC_DESCRIPTOR_H__*/