BLE test
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/BlueNRGDevice.cpp
- Branch:
- 2819f05ab09fdabd46030bb6eab6b01aad1fa2db
- Revision:
- 271:7dc6261c33e5
- Parent:
- 253:9665a6f8bbdb
- Child:
- 273:00205952d841
--- a/source/BlueNRGDevice.cpp Thu Sep 15 10:51:32 2016 +0100 +++ b/source/BlueNRGDevice.cpp Thu Sep 15 10:51:33 2016 +0100 @@ -181,11 +181,9 @@ callback.call(&context); return BLE_ERROR_ALREADY_INITIALIZED; } - - /* ToDo: Clear memory contents, reset the SD, etc. */ + // Init the BlueNRG/BlueNRG-MS stack - // By default, we set the device GAP role to PERIPHERAL - btleInit(BlueNRGGap::getInstance().getIsSetAddress(), GAP_PERIPHERAL_ROLE_IDB04A1); + btleInit(); isInitialized = true; BLE::InitializationCompleteCallbackContext context = { @@ -468,4 +466,4 @@ void BlueNRGDevice::enable_irq() { irq_.enable_irq(); -} +} \ No newline at end of file