HW layer for the Nucleo board, it only work with old BLE_API
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGDevice.h
- Revision:
- 45:1fff7d7d5ce7
- Parent:
- 39:af09d274257b
- Child:
- 58:027c65a54097
--- a/BlueNRGDevice.h Thu Aug 28 12:42:30 2014 +0000 +++ b/BlueNRGDevice.h Fri Sep 05 06:41:21 2014 +0000 @@ -35,14 +35,7 @@ public: BlueNRGDevice(void); virtual ~BlueNRGDevice(void); -/* - virtual Gap &getGap() { - return BlueNRGGap::getInstance(); - }; - virtual GattServer &getGattServer() { - return BlueNRGGattServer::getInstance(); - }; -*/ + virtual Gap &getGap(); virtual GattServer &getGattServer(); virtual const char *getVersion(void); @@ -50,6 +43,11 @@ virtual ble_error_t reset(void); virtual ble_error_t setTxPower(int8_t txPower); virtual void waitForEvent(void); + + bool getIsInitialized(void); + +private: + bool isInitialized; }; #endif