Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: nRF51GattServer.h
- Revision:
- 112:737b08b3b995
- Parent:
- 108:27213b9fd4f9
- Child:
- 180:5082f66bb16e
--- a/nRF51GattServer.h Wed Apr 15 09:24:27 2015 +0100
+++ b/nRF51GattServer.h Thu Apr 30 08:34:37 2015 +0100
@@ -21,6 +21,7 @@
#include "blecommon.h"
#include "ble.h" /* nordic ble */
+#include "Gap.h"
#include "GattServer.h"
class nRF51GattServer : public GattServer
@@ -33,8 +34,10 @@
/* Functions that must be implemented from GattServer */
virtual ble_error_t addService(GattService &);
- virtual ble_error_t readValue(GattAttribute::Handle_t handle, uint8_t buffer[], uint16_t *const lengthP);
+ virtual ble_error_t readValue(GattAttribute::Handle_t attributeHandle, uint8_t buffer[], uint16_t *lengthP);
+ virtual ble_error_t readValue(Gap::Handle_t connectionHandle, GattAttribute::Handle_t attributeHandle, uint8_t buffer[], uint16_t *lengthP);
virtual ble_error_t updateValue(GattAttribute::Handle_t, const uint8_t[], uint16_t, bool localOnly = false);
+ virtual ble_error_t updateValue(Gap::Handle_t connectionHandle, GattAttribute::Handle_t, const uint8_t[], uint16_t, bool localOnly = false);
virtual ble_error_t initializeGATTDatabase(void);
/* nRF51 Functions */

