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:
Thu Aug 15 17:01:11 2019 +0100
Revision:
22:973b10dc67f7
Parent:
16:4dd4ecbc8efb
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

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 22:973b10dc67f7 16 "target.features_add": ["BLE"]
mbed_official 16:4dd4ecbc8efb 17 },
mbed_official 16:4dd4ecbc8efb 18 "NRF52_DK": {
mbed_official 22:973b10dc67f7 19 "target.features_add": ["BLE"]
mbed_official 1:d4bb1e33950e 20 }
mbed_official 1:d4bb1e33950e 21 }
mbed_official 1:d4bb1e33950e 22 }