Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;