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:

- Tera Term

Hardware requirements are in the main readme.

Building instructions

Building instructions for all samples are in the main readme.

Committer:
mbed_official
Date:
Mon Jan 14 10:45:29 2019 +0000
Revision:
16:4dd4ecbc8efb
Parent:
9:c2eb98632b22
Child:
22:973b10dc67f7
Merge pull request #208 from ARMmbed/mbed-os-5.11.0-oob

Mbed OS 5.11.0
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-ble

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 1:d4bb1e33950e 1 {
mbed_official 1:d4bb1e33950e 2 "target_overrides": {
mbed_official 1:d4bb1e33950e 3 "K64F": {
mbed_official 1:d4bb1e33950e 4 "target.features_add": ["BLE"],
mbed_official 9:c2eb98632b22 5 "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"]
mbed_official 1:d4bb1e33950e 6 },
mbed_official 1:d4bb1e33950e 7 "NUCLEO_F401RE": {
mbed_official 1:d4bb1e33950e 8 "target.features_add": ["BLE"],
mbed_official 9:c2eb98632b22 9 "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"]
mbed_official 1:d4bb1e33950e 10 },
mbed_official 1:d4bb1e33950e 11 "DISCO_L475VG_IOT01A": {
mbed_official 1:d4bb1e33950e 12 "target.features_add": ["BLE"],
mbed_official 9:c2eb98632b22 13 "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"]
mbed_official 16:4dd4ecbc8efb 14 },
mbed_official 16:4dd4ecbc8efb 15 "NRF52840_DK": {
mbed_official 16:4dd4ecbc8efb 16 "target.features_add": ["BLE"],
mbed_official 16:4dd4ecbc8efb 17 "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"],
mbed_official 16:4dd4ecbc8efb 18 "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S140_FULL", "NORDIC_SOFTDEVICE"]
mbed_official 16:4dd4ecbc8efb 19 },
mbed_official 16:4dd4ecbc8efb 20 "NRF52_DK": {
mbed_official 16:4dd4ecbc8efb 21 "target.features_add": ["BLE"],
mbed_official 16:4dd4ecbc8efb 22 "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"],
mbed_official 16:4dd4ecbc8efb 23 "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S132_FULL", "NORDIC_SOFTDEVICE"]
mbed_official 1:d4bb1e33950e 24 }
mbed_official 1:d4bb1e33950e 25 }
mbed_official 1:d4bb1e33950e 26 }