Skip to content

Commit 9985858

Browse files
Merge pull request #151 from paul-szczepanek-arm/privacy
Privacy
2 parents 07e9e8b + efe7ca1 commit 9985858

File tree

5 files changed

+535
-0
lines changed

5 files changed

+535
-0
lines changed

BLE_Privacy/.mbed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ROOT=.

BLE_Privacy/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Privacy - example usage of the privacy feature
2+
3+
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.
4+
5+
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.
6+
7+
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.
8+
9+
Subsequent connections will turn on filtering if the whitelist has been successfully created.
10+
11+
# Running the application
12+
13+
## Requirements
14+
15+
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.
16+
17+
Information about activity is printed over the serial connection - please have two clients open, each connected to a device. You may use:
18+
19+
- [Tera Term](https://ttssh2.osdn.jp/index.html.en)
20+
21+
Hardware requirements are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md).
22+
23+
## Building instructions
24+
25+
Building instructions for all samples are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md).
26+
27+
Note: example currently doesn't use ST provided stack and instead uses a Cordio port for the ST.

BLE_Privacy/mbed-os.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/ARMmbed/mbed-os/#6817dc43f9f5216cbe077059fc561fa89a766dc9

BLE_Privacy/mbed_app.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"target_overrides": {
3+
"K64F": {
4+
"target.features_add": ["BLE"],
5+
"target.extra_labels_add": ["ST_BLUENRG"]
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)