adaptation for bkap
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/BlueNRGDevice.cpp
- Revision:
- 132:51056160fa4a
- Parent:
- 130:770ce14d3d15
- Child:
- 139:3a75965fd389
--- a/source/BlueNRGDevice.cpp Tue Oct 06 15:19:19 2015 +0200 +++ b/source/BlueNRGDevice.cpp Wed Oct 07 08:39:04 2015 +0200 @@ -133,7 +133,8 @@ irq_.rise(&HCI_Isr); /* ToDo: Clear memory contents, reset the SD, etc. */ - btle_init(BlueNRGGap::getInstance().getIsSetAddress()); + // By default, we set the device GAP role to PERIPHERAL + btle_init(BlueNRGGap::getInstance().getIsSetAddress(), GAP_PERIPHERAL_ROLE_IDB04A1); isInitialized = true;