BLE test
Fork of X_NUCLEO_IDB0XA1 by
Diff: x-nucleo-idb0xa1/BlueNRGDevice.h
- Revision:
- 132:51056160fa4a
- Parent:
- 131:e09947216ccb
- Child:
- 144:bdf5e8432131
--- a/x-nucleo-idb0xa1/BlueNRGDevice.h Tue Oct 06 15:19:19 2015 +0200 +++ b/x-nucleo-idb0xa1/BlueNRGDevice.h Wed Oct 07 08:39:04 2015 +0200 @@ -45,6 +45,7 @@ #include "ble/BLE.h" #include "BlueNRGGap.h" #include "BlueNRGGattServer.h" +#include "BlueNRGGattClient.h" class BlueNRGDevice : public BLEInstanceBase @@ -64,7 +65,7 @@ virtual void waitForEvent(void); virtual GattClient& getGattClient() { - return *gattClient; + return BlueNRGGattClient::getInstance(); } virtual SecurityManager& getSecurityManager() { @@ -93,7 +94,6 @@ //FIXME: TBI (by now just placeholders to let build /*** betzw: placeholders ***/ - GattClient *gattClient; SecurityManager *sm; };