HW layer for the Nucleo board, it only work with old BLE_API

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
98:731050bb5362
Parent:
97:a89d28ad6092
--- a/BlueNRGGattServer.h	Mon Jul 27 11:10:19 2015 +0000
+++ b/BlueNRGGattServer.h	Fri Jul 31 11:47:54 2015 +0000
@@ -47,7 +47,9 @@
 #define BLE_TOTAL_CHARACTERISTICS 10
 
 // If the char has handle 'x', then the value declaration will have the handle 'x+1'
+// If the char has handle 'x', then the char descriptor declaration will have the handle 'x+2'
 #define CHAR_VALUE_OFFSET 1
+#define CHAR_DESC_OFFSET 2
 
 using namespace std;
 
@@ -59,6 +61,12 @@
         return m_instance;
     }
     
+    enum HandleEnum_t {
+        CHAR_HANDLE = 0,
+        CHAR_VALUE_HANDLE,
+        CHAR_DESC_HANDLE
+    };
+    
     /* Functions that must be implemented from GattServer */
     // <<<ANDREA>>>
     virtual ble_error_t addService(GattService &);