Demonstration of the GAP profile. It shows advertising, scanning and connecting. The demo will cycle through several modes and print over the serial connection information about current activity.
GAP - Advertising, Scanning, Connecting
Demonstration of GAP API usage. It shows advertising, scanning and connecting. The demo will cycle through several modes and print over the serial connection information about current activity.
Running the application
Requirements
The sample application can be seen on any BLE scanner on a smartphone. If you don't have a scanner on your phone, please install :
- nRF Master Control Panel for Android.
- LightBlue for iPhone.
Information about activity is printed over the serial connection - please have a client open. You may use:
Hardware requirements are in the main readme.
Building instructions
Building instructions for all samples are in the main readme.
Revision 22:973b10dc67f7, committed 2019-08-15
- Comitter:
- mbed_official
- Date:
- Thu Aug 15 17:01:11 2019 +0100
- Parent:
- 21:59235cb6afd2
- Commit message:
- Merge pull request #252 from donatieng/mbed_os_update
Update Master branch to use Mbed OS 5.13.1
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-ble
Changed in this revision
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
mbed_app.json | Show annotated file Show diff for this revision Revisions of this file |
diff -r 59235cb6afd2 -r 973b10dc67f7 mbed-os.lib --- a/mbed-os.lib Tue Jul 23 12:02:24 2019 +0100 +++ b/mbed-os.lib Thu Aug 15 17:01:11 2019 +0100 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#51d55508e8400b60af467005646c4e2164738d48 +https://github.com/ARMmbed/mbed-os/#5941d1718339116cd12914238ec331c84da3d08f
diff -r 59235cb6afd2 -r 973b10dc67f7 mbed_app.json --- a/mbed_app.json Tue Jul 23 12:02:24 2019 +0100 +++ b/mbed_app.json Thu Aug 15 17:01:11 2019 +0100 @@ -13,14 +13,10 @@ "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"] }, "NRF52840_DK": { - "target.features_add": ["BLE"], - "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"], - "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S140_FULL", "NORDIC_SOFTDEVICE"] + "target.features_add": ["BLE"] }, "NRF52_DK": { - "target.features_add": ["BLE"], - "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"], - "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S132_FULL", "NORDIC_SOFTDEVICE"] + "target.features_add": ["BLE"] } } }