テスト用

Fork of nRF51822 by Nordic Semiconductor

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 &);