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:
- 75:95d732949d23
- Parent:
- 74:d453d7969553
- Child:
- 76:ce629a504851
diff -r d453d7969553 -r 95d732949d23 nRF51GattServer.h
--- a/nRF51GattServer.h Fri Nov 21 10:00:41 2014 +0000
+++ b/nRF51GattServer.h Fri Nov 21 10:00:41 2014 +0000
@@ -23,9 +23,6 @@
#include "GattService.h"
#include "public/GattServer.h"
-#define BLE_TOTAL_CHARACTERISTICS 24
-#define BLE_TOTAL_DESCRIPTORS 24
-
class nRF51GattServer : public GattServer
{
public:
@@ -44,6 +41,9 @@
void hwCallback(ble_evt_t *p_ble_evt);
private:
+ const static unsigned BLE_TOTAL_CHARACTERISTICS = 24;
+ const static unsigned BLE_TOTAL_DESCRIPTORS = 24;
+
GattCharacteristic *p_characteristics[BLE_TOTAL_CHARACTERISTICS];
ble_gatts_char_handles_t nrfCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS];
GattAttribute *p_descriptors[BLE_TOTAL_DESCRIPTORS];
