Changed the device name.
Dependents: BLE_Health_Thermometer_HeartRateMonitor
Fork of BLE_API_Native_IRC by
Diff: hw/nRF51822n/nRF51GattServer.h
- Revision:
- 8:b346eddb9346
- Parent:
- 0:4c3097c65247
--- a/hw/nRF51822n/nRF51GattServer.h Thu Feb 13 11:27:58 2014 +0000 +++ b/hw/nRF51822n/nRF51GattServer.h Fri Feb 14 10:50:45 2014 +0000 @@ -33,7 +33,7 @@ class nRF51GattServer : public GattServer { public: - static nRF51GattServer& getInstance() + static nRF51GattServer& getInstance() { static nRF51GattServer m_instance; return m_instance; @@ -46,13 +46,17 @@ /* nRF51 Functions */ void eventCallback(void); + + uint16_t m_connectionHandle; // TODO move to private private: - nRF51GattServer() { serviceCount = 0; characteristicCount = 0; }; + GattCharacteristic* p_characteristics[BLE_TOTAL_CHARACTERISTICS]; + ble_gatts_char_handles_t nrfCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS]; + + nRF51GattServer() { serviceCount = 0; characteristicCount = 0; m_connectionHandle = BLE_CONN_HANDLE_INVALID; }; + nRF51GattServer(nRF51GattServer const&); void operator=(nRF51GattServer const&); - - ble_gatts_char_handles_t nrfCharacteristicHandles[BLE_TOTAL_CHARACTERISTICS]; }; #endif