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.
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGGattServer.h
- 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 &);
