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: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: nRF51GattServer.h
- Revision:
- 54:e2294c844c83
- Parent:
- 52:120bd37b9d0d
- Child:
- 57:2aa01a5008ac
diff -r 1e5c300cec7f -r e2294c844c83 nRF51GattServer.h
--- a/nRF51GattServer.h Fri Jul 25 10:33:52 2014 +0100
+++ b/nRF51GattServer.h Thu Aug 28 15:50:59 2014 +0200
@@ -24,6 +24,7 @@
#include "public/GattServer.h"
#define BLE_TOTAL_CHARACTERISTICS 10
+#define BLE_TOTAL_DESCRIPTORS 10
class nRF51GattServer : public GattServer
{
@@ -50,10 +51,13 @@
private:
GattCharacteristic *p_characteristics[BLE_TOTAL_CHARACTERISTICS];
ble_gatts_char_handles_t nrfCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS];
+ GattAttribute *p_descriptors[BLE_TOTAL_DESCRIPTORS];
+ uint16_t nrfDescriptorHandles[BLE_TOTAL_DESCRIPTORS];
nRF51GattServer() {
serviceCount = 0;
characteristicCount = 0;
+ descriptorCount = 0;
};
nRF51GattServer(nRF51GattServer const &);
