High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Committer:
rgrover1
Date:
Fri Jun 19 15:52:10 2015 +0100
Revision:
558:f5d517505e85
Parent:
556:34fa32a420f9
Child:
567:e4b38e43de7c
Synchronized with git rev 29e1b7f7
Author: Rohit Grover
GattServer.h: provide default implementations for virtual methods. Fix comments.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 258:85de85adfac7 1 /* mbed Microcontroller Library
rgrover1 258:85de85adfac7 2 * Copyright (c) 2006-2013 ARM Limited
rgrover1 258:85de85adfac7 3 *
rgrover1 258:85de85adfac7 4 * Licensed under the Apache License, Version 2.0 (the "License");
rgrover1 258:85de85adfac7 5 * you may not use this file except in compliance with the License.
rgrover1 258:85de85adfac7 6 * You may obtain a copy of the License at
rgrover1 258:85de85adfac7 7 *
rgrover1 258:85de85adfac7 8 * http://www.apache.org/licenses/LICENSE-2.0
rgrover1 258:85de85adfac7 9 *
rgrover1 258:85de85adfac7 10 * Unless required by applicable law or agreed to in writing, software
rgrover1 258:85de85adfac7 11 * distributed under the License is distributed on an "AS IS" BASIS,
rgrover1 258:85de85adfac7 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rgrover1 258:85de85adfac7 13 * See the License for the specific language governing permissions and
rgrover1 258:85de85adfac7 14 * limitations under the License.
rgrover1 258:85de85adfac7 15 */
rgrover1 258:85de85adfac7 16
rgrover1 258:85de85adfac7 17 #ifndef __GATT_SERVER_H__
rgrover1 258:85de85adfac7 18 #define __GATT_SERVER_H__
rgrover1 258:85de85adfac7 19
rgrover1 340:c7684a5bc2e1 20 #include "Gap.h"
rgrover1 258:85de85adfac7 21 #include "GattService.h"
rgrover1 340:c7684a5bc2e1 22 #include "GattAttribute.h"
rgrover1 258:85de85adfac7 23 #include "GattServerEvents.h"
rgrover1 527:493185cebc03 24 #include "GattCallbackParamTypes.h"
rgrover1 258:85de85adfac7 25 #include "CallChainOfFunctionPointersWithContext.h"
rgrover1 258:85de85adfac7 26
rgrover1 258:85de85adfac7 27 class GattServer {
rgrover1 258:85de85adfac7 28 public:
rgrover1 258:85de85adfac7 29 /* Event callback handlers. */
rgrover1 376:47ff130c1d74 30 typedef void (*EventCallback_t)(GattAttribute::Handle_t attributeHandle);
rgrover1 258:85de85adfac7 31 typedef void (*ServerEventCallback_t)(void); /**< independent of any particular attribute */
rgrover1 258:85de85adfac7 32
rgrover1 258:85de85adfac7 33 protected:
rgrover1 263:73847e8b6025 34 GattServer() :
rgrover1 263:73847e8b6025 35 serviceCount(0),
rgrover1 263:73847e8b6025 36 characteristicCount(0),
rgrover1 547:f84c514eee35 37 dataSentCallChain(),
rgrover1 548:623e4c0f0b6e 38 dataWrittenCallChain(),
rgrover1 551:d79a7933a6d1 39 dataReadCallChain(),
rgrover1 550:35b3962903af 40 updatesEnabledCallback(NULL),
rgrover1 552:9bf985a8a49b 41 updatesDisabledCallback(NULL),
rgrover1 554:59e95a0efa37 42 confirmationReceivedCallback(NULL) {
rgrover1 258:85de85adfac7 43 /* empty */
rgrover1 258:85de85adfac7 44 }
rgrover1 258:85de85adfac7 45
rgrover1 558:f5d517505e85 46 /*
rgrover1 558:f5d517505e85 47 * The following functions are meant to be overridden in the platform-specific sub-class.
rgrover1 558:f5d517505e85 48 */
rgrover1 526:caa67c3187a0 49 public:
rgrover1 539:0b6e82025358 50
rgrover1 539:0b6e82025358 51 /**
rgrover1 539:0b6e82025358 52 * Add a service declaration to the local server ATT table. Also add the
rgrover1 539:0b6e82025358 53 * characteristics contained within.
rgrover1 539:0b6e82025358 54 */
rgrover1 558:f5d517505e85 55 virtual ble_error_t addService(GattService &) {
rgrover1 558:f5d517505e85 56 return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this API if this capability is supported. */
rgrover1 558:f5d517505e85 57 }
rgrover1 539:0b6e82025358 58
rgrover1 539:0b6e82025358 59 /**
rgrover1 539:0b6e82025358 60 * Read the value of a characteristic from the local GattServer
rgrover1 539:0b6e82025358 61 * @param[in] attributeHandle
rgrover1 539:0b6e82025358 62 * Attribute handle for the value attribute of the characteristic.
rgrover1 539:0b6e82025358 63 * @param[out] buffer
rgrover1 539:0b6e82025358 64 * A buffer to hold the value being read.
rgrover1 539:0b6e82025358 65 * @param[in/out] lengthP
rgrover1 539:0b6e82025358 66 * Length of the buffer being supplied. If the attribute
rgrover1 539:0b6e82025358 67 * value is longer than the size of the supplied buffer,
rgrover1 539:0b6e82025358 68 * this variable will hold upon return the total attribute value length
rgrover1 539:0b6e82025358 69 * (excluding offset). The application may use this
rgrover1 539:0b6e82025358 70 * information to allocate a suitable buffer size.
rgrover1 539:0b6e82025358 71 *
rgrover1 539:0b6e82025358 72 * @return BLE_ERROR_NONE if a value was read successfully into the buffer.
rgrover1 539:0b6e82025358 73 */
rgrover1 558:f5d517505e85 74 virtual ble_error_t read(GattAttribute::Handle_t attributeHandle, uint8_t buffer[], uint16_t *lengthP) {
rgrover1 558:f5d517505e85 75 return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this API if this capability is supported. */
rgrover1 558:f5d517505e85 76 }
rgrover1 539:0b6e82025358 77
rgrover1 539:0b6e82025358 78 /**
rgrover1 539:0b6e82025358 79 * Read the value of a characteristic from the local GattServer
rgrover1 539:0b6e82025358 80 * @param[in] connectionHandle
rgrover1 539:0b6e82025358 81 * Connection Handle.
rgrover1 539:0b6e82025358 82 * @param[in] attributeHandle
rgrover1 539:0b6e82025358 83 * Attribute handle for the value attribute of the characteristic.
rgrover1 539:0b6e82025358 84 * @param[out] buffer
rgrover1 539:0b6e82025358 85 * A buffer to hold the value being read.
rgrover1 539:0b6e82025358 86 * @param[in/out] lengthP
rgrover1 539:0b6e82025358 87 * Length of the buffer being supplied. If the attribute
rgrover1 539:0b6e82025358 88 * value is longer than the size of the supplied buffer,
rgrover1 539:0b6e82025358 89 * this variable will hold upon return the total attribute value length
rgrover1 539:0b6e82025358 90 * (excluding offset). The application may use this
rgrover1 539:0b6e82025358 91 * information to allocate a suitable buffer size.
rgrover1 539:0b6e82025358 92 *
rgrover1 539:0b6e82025358 93 * @return BLE_ERROR_NONE if a value was read successfully into the buffer.
rgrover1 539:0b6e82025358 94 *
rgrover1 539:0b6e82025358 95 * @note This API is a version of above with an additional connection handle
rgrover1 539:0b6e82025358 96 * parameter to allow fetches for connection-specific multivalued
rgrover1 539:0b6e82025358 97 * attribtues (such as the CCCDs).
rgrover1 539:0b6e82025358 98 */
rgrover1 558:f5d517505e85 99 virtual ble_error_t read(Gap::Handle_t connectionHandle, GattAttribute::Handle_t attributeHandle, uint8_t *buffer, uint16_t *lengthP) {
rgrover1 558:f5d517505e85 100 return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this API if this capability is supported. */
rgrover1 558:f5d517505e85 101 }
rgrover1 539:0b6e82025358 102
rgrover1 539:0b6e82025358 103 /**
rgrover1 539:0b6e82025358 104 * Update the value of a characteristic on the local GattServer.
rgrover1 539:0b6e82025358 105 *
rgrover1 539:0b6e82025358 106 * @param[in] attributeHandle
rgrover1 539:0b6e82025358 107 * Handle for the value attribute of the Characteristic.
rgrover1 539:0b6e82025358 108 * @param[in] value
rgrover1 539:0b6e82025358 109 * A pointer to a buffer holding the new value
rgrover1 539:0b6e82025358 110 * @param[in] size
rgrover1 539:0b6e82025358 111 * Size of the new value (in bytes).
rgrover1 539:0b6e82025358 112 * @param[in] localOnly
rgrover1 539:0b6e82025358 113 * Should this update be kept on the local
rgrover1 539:0b6e82025358 114 * GattServer regardless of the state of the
rgrover1 539:0b6e82025358 115 * notify/indicate flag in the CCCD for this
rgrover1 539:0b6e82025358 116 * Characteristic? If set to true, no notification
rgrover1 539:0b6e82025358 117 * or indication is generated.
rgrover1 539:0b6e82025358 118 *
rgrover1 539:0b6e82025358 119 * @return BLE_ERROR_NONE if we have successfully set the value of the attribute.
rgrover1 539:0b6e82025358 120 */
rgrover1 558:f5d517505e85 121 virtual ble_error_t write(GattAttribute::Handle_t, const uint8_t *, uint16_t, bool localOnly = false) {
rgrover1 558:f5d517505e85 122 return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this API if this capability is supported. */
rgrover1 558:f5d517505e85 123 }
rgrover1 539:0b6e82025358 124
rgrover1 539:0b6e82025358 125 /**
rgrover1 539:0b6e82025358 126 * Update the value of a characteristic on the local GattServer. A version
rgrover1 539:0b6e82025358 127 * of the same as above with connection handle parameter to allow updates
rgrover1 539:0b6e82025358 128 * for connection-specific multivalued attribtues (such as the CCCDs).
rgrover1 539:0b6e82025358 129 *
rgrover1 539:0b6e82025358 130 * @param[in] connectionHandle
rgrover1 539:0b6e82025358 131 * Connection Handle.
rgrover1 539:0b6e82025358 132 * @param[in] attributeHandle
rgrover1 539:0b6e82025358 133 * Handle for the value attribute of the Characteristic.
rgrover1 539:0b6e82025358 134 * @param[in] value
rgrover1 539:0b6e82025358 135 * A pointer to a buffer holding the new value
rgrover1 539:0b6e82025358 136 * @param[in] size
rgrover1 539:0b6e82025358 137 * Size of the new value (in bytes).
rgrover1 539:0b6e82025358 138 * @param[in] localOnly
rgrover1 539:0b6e82025358 139 * Should this update be kept on the local
rgrover1 539:0b6e82025358 140 * GattServer regardless of the state of the
rgrover1 539:0b6e82025358 141 * notify/indicate flag in the CCCD for this
rgrover1 539:0b6e82025358 142 * Characteristic? If set to true, no notification
rgrover1 539:0b6e82025358 143 * or indication is generated.
rgrover1 539:0b6e82025358 144 *
rgrover1 539:0b6e82025358 145 * @return BLE_ERROR_NONE if we have successfully set the value of the attribute.
rgrover1 539:0b6e82025358 146 */
rgrover1 558:f5d517505e85 147 virtual ble_error_t write(Gap::Handle_t connectionHandle, GattAttribute::Handle_t, const uint8_t *, uint16_t, bool localOnly = false) {
rgrover1 558:f5d517505e85 148 return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this API if this capability is supported. */
rgrover1 558:f5d517505e85 149 }
rgrover1 539:0b6e82025358 150
rgrover1 547:f84c514eee35 151 /**
rgrover1 558:f5d517505e85 152 * A virtual function to allow underlying stacks to indicate if they support
rgrover1 558:f5d517505e85 153 * onDataRead(). It should be overridden to return true as applicable.
rgrover1 558:f5d517505e85 154 */
rgrover1 558:f5d517505e85 155 virtual bool isOnDataReadAvailable() const {
rgrover1 558:f5d517505e85 156 return false; /* default implementation; override this API if this capability is supported. */
rgrover1 558:f5d517505e85 157 }
rgrover1 558:f5d517505e85 158
rgrover1 558:f5d517505e85 159 /*
rgrover1 558:f5d517505e85 160 * APIs with non-virtual implementations.
rgrover1 558:f5d517505e85 161 */
rgrover1 558:f5d517505e85 162 public:
rgrover1 558:f5d517505e85 163 /**
rgrover1 547:f84c514eee35 164 * Add a callback for the GATT event DATA_SENT (which is triggered when
rgrover1 547:f84c514eee35 165 * updates are sent out by GATT in the form of notifications).
rgrover1 547:f84c514eee35 166 *
rgrover1 547:f84c514eee35 167 * @Note: it is possible to chain together multiple onDataSent callbacks
rgrover1 547:f84c514eee35 168 * (potentially from different modules of an application) to receive updates
rgrover1 547:f84c514eee35 169 * to characteristics.
rgrover1 547:f84c514eee35 170 *
rgrover1 547:f84c514eee35 171 * @Note: it is also possible to setup a callback into a member function of
rgrover1 547:f84c514eee35 172 * some object.
rgrover1 547:f84c514eee35 173 */
rgrover1 547:f84c514eee35 174 void onDataSent(void (*callback)(unsigned count)) {dataSentCallChain.add(callback);}
rgrover1 259:a95264ad705c 175 template <typename T>
rgrover1 547:f84c514eee35 176 void onDataSent(T *objPtr, void (T::*memberPtr)(unsigned count)) {
rgrover1 547:f84c514eee35 177 dataSentCallChain.add(objPtr, memberPtr);
rgrover1 259:a95264ad705c 178 }
rgrover1 547:f84c514eee35 179
rgrover1 548:623e4c0f0b6e 180 /**
rgrover1 548:623e4c0f0b6e 181 * Setup a callback for when an attribute has its value updated by or at the
rgrover1 548:623e4c0f0b6e 182 * connected peer. For a peripheral, this callback triggered when the local
rgrover1 548:623e4c0f0b6e 183 * GATT server has an attribute updated by a write command from the peer.
rgrover1 548:623e4c0f0b6e 184 * For a Central, this callback is triggered when a response is received for
rgrover1 548:623e4c0f0b6e 185 * a write request.
rgrover1 548:623e4c0f0b6e 186 *
rgrover1 548:623e4c0f0b6e 187 * @Note: it is possible to chain together multiple onDataWritten callbacks
rgrover1 548:623e4c0f0b6e 188 * (potentially from different modules of an application) to receive updates
rgrover1 548:623e4c0f0b6e 189 * to characteristics. Many services, such as DFU and UART add their own
rgrover1 548:623e4c0f0b6e 190 * onDataWritten callbacks behind the scenes to trap interesting events.
rgrover1 548:623e4c0f0b6e 191 *
rgrover1 548:623e4c0f0b6e 192 * @Note: it is also possible to setup a callback into a member function of
rgrover1 548:623e4c0f0b6e 193 * some object.
rgrover1 548:623e4c0f0b6e 194 */
rgrover1 548:623e4c0f0b6e 195 void onDataWritten(void (*callback)(const GattWriteCallbackParams *eventDataP)) {dataWrittenCallChain.add(callback);}
rgrover1 258:85de85adfac7 196 template <typename T>
rgrover1 548:623e4c0f0b6e 197 void onDataWritten(T *objPtr, void (T::*memberPtr)(const GattWriteCallbackParams *context)) {
rgrover1 548:623e4c0f0b6e 198 dataWrittenCallChain.add(objPtr, memberPtr);
rgrover1 258:85de85adfac7 199 }
rgrover1 300:d9a39f759a6a 200
rgrover1 300:d9a39f759a6a 201 /**
rgrover1 551:d79a7933a6d1 202 * Setup a callback to be invoked on the peripheral when an attribute is
rgrover1 551:d79a7933a6d1 203 * being read by a remote client.
rgrover1 551:d79a7933a6d1 204 *
rgrover1 551:d79a7933a6d1 205 * @Note: this functionality may not be available on all underlying stacks.
rgrover1 551:d79a7933a6d1 206 * You could use GattCharacteristic::setReadAuthorizationCallback() as an
rgrover1 551:d79a7933a6d1 207 * alternative.
rgrover1 551:d79a7933a6d1 208 *
rgrover1 551:d79a7933a6d1 209 * @Note: it is possible to chain together multiple onDataRead callbacks
rgrover1 551:d79a7933a6d1 210 * (potentially from different modules of an application) to receive updates
rgrover1 551:d79a7933a6d1 211 * to characteristics. Services may add their own onDataRead callbacks
rgrover1 551:d79a7933a6d1 212 * behind the scenes to trap interesting events.
rgrover1 551:d79a7933a6d1 213 *
rgrover1 551:d79a7933a6d1 214 * @Note: it is also possible to setup a callback into a member function of
rgrover1 551:d79a7933a6d1 215 * some object.
rgrover1 551:d79a7933a6d1 216 *
rgrover1 551:d79a7933a6d1 217 * @return BLE_ERROR_NOT_IMPLEMENTED if this functionality isn't available;
rgrover1 551:d79a7933a6d1 218 * else BLE_ERROR_NONE.
rgrover1 551:d79a7933a6d1 219 */
rgrover1 551:d79a7933a6d1 220 ble_error_t onDataRead(void (*callback)(const GattReadCallbackParams *eventDataP)) {
rgrover1 301:54c87189e423 221 if (!isOnDataReadAvailable()) {
rgrover1 300:d9a39f759a6a 222 return BLE_ERROR_NOT_IMPLEMENTED;
rgrover1 300:d9a39f759a6a 223 }
rgrover1 300:d9a39f759a6a 224
rgrover1 551:d79a7933a6d1 225 dataReadCallChain.add(callback);
rgrover1 300:d9a39f759a6a 226 return BLE_ERROR_NONE;
rgrover1 300:d9a39f759a6a 227 }
rgrover1 300:d9a39f759a6a 228 template <typename T>
rgrover1 551:d79a7933a6d1 229 ble_error_t onDataRead(T *objPtr, void (T::*memberPtr)(const GattReadCallbackParams *context)) {
rgrover1 301:54c87189e423 230 if (!isOnDataReadAvailable()) {
rgrover1 300:d9a39f759a6a 231 return BLE_ERROR_NOT_IMPLEMENTED;
rgrover1 300:d9a39f759a6a 232 }
rgrover1 300:d9a39f759a6a 233
rgrover1 551:d79a7933a6d1 234 dataReadCallChain.add(objPtr, memberPtr);
rgrover1 300:d9a39f759a6a 235 return BLE_ERROR_NONE;
rgrover1 300:d9a39f759a6a 236 }
rgrover1 550:35b3962903af 237
rgrover1 550:35b3962903af 238 /**
rgrover1 550:35b3962903af 239 * Setup a callback for when notifications/indications are enabled for a
rgrover1 550:35b3962903af 240 * characteristic on the local GattServer.
rgrover1 550:35b3962903af 241 */
rgrover1 552:9bf985a8a49b 242 void onUpdatesEnabled(EventCallback_t callback) {updatesEnabledCallback = callback;}
rgrover1 550:35b3962903af 243
rgrover1 552:9bf985a8a49b 244 /**
rgrover1 552:9bf985a8a49b 245 * Setup a callback for when notifications/indications are disabled for a
rgrover1 552:9bf985a8a49b 246 * characteristic on the local GattServer.
rgrover1 552:9bf985a8a49b 247 */
rgrover1 552:9bf985a8a49b 248 void onUpdatesDisabled(EventCallback_t callback) {updatesDisabledCallback = callback;}
rgrover1 552:9bf985a8a49b 249
rgrover1 554:59e95a0efa37 250 /**
rgrover1 554:59e95a0efa37 251 * Setup a callback for when the GATT server receives a response for an
rgrover1 554:59e95a0efa37 252 * indication event sent previously.
rgrover1 554:59e95a0efa37 253 */
rgrover1 554:59e95a0efa37 254 void onConfirmationReceived(EventCallback_t callback) {confirmationReceivedCallback = callback;}
rgrover1 258:85de85adfac7 255
rgrover1 558:f5d517505e85 256 /* Entry points for the underlying stack to report events back to the user. */
rgrover1 258:85de85adfac7 257 protected:
rgrover1 527:493185cebc03 258 void handleDataWrittenEvent(const GattWriteCallbackParams *params) {
rgrover1 548:623e4c0f0b6e 259 if (dataWrittenCallChain.hasCallbacksAttached()) {
rgrover1 548:623e4c0f0b6e 260 dataWrittenCallChain.call(params);
rgrover1 258:85de85adfac7 261 }
rgrover1 258:85de85adfac7 262 }
rgrover1 258:85de85adfac7 263
rgrover1 527:493185cebc03 264 void handleDataReadEvent(const GattReadCallbackParams *params) {
rgrover1 551:d79a7933a6d1 265 if (dataReadCallChain.hasCallbacksAttached()) {
rgrover1 551:d79a7933a6d1 266 dataReadCallChain.call(params);
rgrover1 300:d9a39f759a6a 267 }
rgrover1 300:d9a39f759a6a 268 }
rgrover1 300:d9a39f759a6a 269
rgrover1 376:47ff130c1d74 270 void handleEvent(GattServerEvents::gattEvent_e type, GattAttribute::Handle_t charHandle) {
rgrover1 258:85de85adfac7 271 switch (type) {
rgrover1 258:85de85adfac7 272 case GattServerEvents::GATT_EVENT_UPDATES_ENABLED:
rgrover1 550:35b3962903af 273 if (updatesEnabledCallback) {
rgrover1 550:35b3962903af 274 updatesEnabledCallback(charHandle);
rgrover1 258:85de85adfac7 275 }
rgrover1 258:85de85adfac7 276 break;
rgrover1 258:85de85adfac7 277 case GattServerEvents::GATT_EVENT_UPDATES_DISABLED:
rgrover1 552:9bf985a8a49b 278 if (updatesDisabledCallback) {
rgrover1 552:9bf985a8a49b 279 updatesDisabledCallback(charHandle);
rgrover1 258:85de85adfac7 280 }
rgrover1 258:85de85adfac7 281 break;
rgrover1 258:85de85adfac7 282 case GattServerEvents::GATT_EVENT_CONFIRMATION_RECEIVED:
rgrover1 554:59e95a0efa37 283 if (confirmationReceivedCallback) {
rgrover1 554:59e95a0efa37 284 confirmationReceivedCallback(charHandle);
rgrover1 258:85de85adfac7 285 }
rgrover1 258:85de85adfac7 286 break;
rgrover1 267:ad6f6f40eb24 287 default:
rgrover1 267:ad6f6f40eb24 288 break;
rgrover1 258:85de85adfac7 289 }
rgrover1 258:85de85adfac7 290 }
rgrover1 258:85de85adfac7 291
rgrover1 258:85de85adfac7 292 void handleDataSentEvent(unsigned count) {
rgrover1 547:f84c514eee35 293 if (dataSentCallChain.hasCallbacksAttached()) {
rgrover1 547:f84c514eee35 294 dataSentCallChain.call(count);
rgrover1 258:85de85adfac7 295 }
rgrover1 258:85de85adfac7 296 }
rgrover1 258:85de85adfac7 297
rgrover1 258:85de85adfac7 298 protected:
rgrover1 258:85de85adfac7 299 uint8_t serviceCount;
rgrover1 258:85de85adfac7 300 uint8_t characteristicCount;
rgrover1 258:85de85adfac7 301
rgrover1 258:85de85adfac7 302 private:
rgrover1 548:623e4c0f0b6e 303 CallChainOfFunctionPointersWithContext<unsigned> dataSentCallChain;
rgrover1 548:623e4c0f0b6e 304 CallChainOfFunctionPointersWithContext<const GattWriteCallbackParams *> dataWrittenCallChain;
rgrover1 551:d79a7933a6d1 305 CallChainOfFunctionPointersWithContext<const GattReadCallbackParams *> dataReadCallChain;
rgrover1 550:35b3962903af 306 EventCallback_t updatesEnabledCallback;
rgrover1 552:9bf985a8a49b 307 EventCallback_t updatesDisabledCallback;
rgrover1 554:59e95a0efa37 308 EventCallback_t confirmationReceivedCallback;
rgrover1 258:85de85adfac7 309
rgrover1 258:85de85adfac7 310 private:
rgrover1 258:85de85adfac7 311 /* disallow copy and assignment */
rgrover1 258:85de85adfac7 312 GattServer(const GattServer &);
rgrover1 258:85de85adfac7 313 GattServer& operator=(const GattServer &);
rgrover1 258:85de85adfac7 314 };
rgrover1 258:85de85adfac7 315
rgrover1 258:85de85adfac7 316 #endif // ifndef __GATT_SERVER_H__