nrfGattServer:: move constants into the class.

This commit is contained in:
Rohit Grover 2014-11-18 10:13:31 +00:00
parent d419ec36e7
commit 1bc9fa928b

View file

@ -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 @@ public:
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];