Example usage of the privacy features in the GAP.

Privacy - example usage of the privacy feature

Demonstration of privacy features in Gap. It shows how to use private addresses when advertising and connecting and how filtering ties in with these operations.

The application will start by repeatedly trying to connect to the same application running on another board. It will do this by advertising and scanning for random intervals waiting until the difference in intervals between the boards will make them meet when one is advertising and the other scanning.

Two devices will be operating using random resolvable addresses. The application will connect to the peer and pair. It will attempt bonding and if possible create a whitelist based on the bond.

Subsequent connections will turn on filtering if the whitelist has been successfully created.

Running the application

Requirements

Application requires two devices. Each one should be loaded with the same example. The application will alternate between scanning and advertising until the two devices find each other and the demonstration proceeds.

Information about activity is printed over the serial connection - please have two clients open, each connected to a device. You may use:

- Tera Term

Hardware requirements are in the main readme.

Building instructions

Building instructions for all samples are in the main readme.

Note: example currently doesn't use ST provided stack and instead uses a Cordio port for the ST.

Committer:
mbed_official
Date:
Mon Feb 25 17:44:26 2019 +0000
Revision:
0:2a36ad25fd97
Child:
2:13ad22604846
Merge pull request #217 from adbridge/master

Updating mbed-os to mbed-os-5.11.4
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-ble

Who changed what in which revision?

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