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 nRF51822 by
Revision 75:95d732949d23, committed 2014-11-21
- Comitter:
- rgrover1
- Date:
- Fri Nov 21 10:00:41 2014 +0000
- Parent:
- 74:d453d7969553
- Child:
- 76:ce629a504851
- Commit message:
- Synchronized with git rev 1bc9fa92
Author: Rohit Grover
nrfGattServer:: move constants into the class.
Changed in this revision
| nRF51GattServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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];
