nochanges
Dependents: BLE_Acceleration_Statejudging
Fork of nRF51822 by
Diff: nRF51GattServer.h
- Revision:
- 75:95d732949d23
- Parent:
- 74:d453d7969553
- Child:
- 76:ce629a504851
--- 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];