2015-05-29 08:47:54 +00:00
|
|
|
/* 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 __NRF_DISCOVERED_CHARACTERISTIC_H__
|
|
|
|
#define __NRF_DISCOVERED_CHARACTERISTIC_H__
|
|
|
|
|
2015-06-19 12:39:08 +00:00
|
|
|
#include "ble/DiscoveredCharacteristic.h"
|
2015-06-04 13:44:44 +00:00
|
|
|
#include "ble_gatt.h"
|
|
|
|
|
2015-07-06 13:17:22 +00:00
|
|
|
class nRF5xGattClient; /* forward declaration */
|
2015-06-05 08:26:41 +00:00
|
|
|
|
2015-07-06 13:17:22 +00:00
|
|
|
class nRF5xDiscoveredCharacteristic : public DiscoveredCharacteristic {
|
2015-05-29 08:47:54 +00:00
|
|
|
public:
|
2015-07-06 13:17:22 +00:00
|
|
|
void setup(nRF5xGattClient *gattcIn,
|
2015-06-04 06:56:00 +00:00
|
|
|
Gap::Handle_t connectionHandleIn,
|
|
|
|
ble_gatt_char_props_t propsIn,
|
|
|
|
GattAttribute::Handle_t declHandleIn,
|
2015-06-05 08:26:41 +00:00
|
|
|
GattAttribute::Handle_t valueHandleIn);
|
2015-05-29 08:47:54 +00:00
|
|
|
|
2015-07-06 13:17:22 +00:00
|
|
|
void setup(nRF5xGattClient *gattcIn,
|
2015-06-04 06:56:00 +00:00
|
|
|
Gap::Handle_t connectionHandleIn,
|
|
|
|
UUID::ShortUUIDBytes_t uuidIn,
|
|
|
|
ble_gatt_char_props_t propsIn,
|
|
|
|
GattAttribute::Handle_t declHandleIn,
|
2015-06-05 08:26:41 +00:00
|
|
|
GattAttribute::Handle_t valueHandleIn);
|
2015-12-14 15:04:56 +00:00
|
|
|
|
|
|
|
void setLastHandle(GattAttribute::Handle_t last) {
|
|
|
|
lastHandle = last;
|
|
|
|
}
|
2015-05-29 08:47:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __NRF_DISCOVERED_CHARACTERISTIC_H__ */
|