SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

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];