Skip to content

Commit 76cb7c0

Browse files
unify periodic advertising
use lambda and chrono, unify code, use external common code, lower maintainence surface by removing external features like LED
1 parent cacb77c commit 76cb7c0

File tree

5 files changed

+127
-280
lines changed

5 files changed

+127
-280
lines changed

BLE_PeriodicAdvertising/README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
# Periodic advertising and scanning
1+
Demo of the periodic advertising. This requires two devices to run. Both devices run the same program.
2+
They attempt to find find each other after which they adopt complementary roles. One sets up periodic advertising.
3+
The other attempts to scan and sync with the periodic advertising.
24

3-
Demo of the periodic advertising. This requires two devices to run. Both devices run the same program. They attempt to find find each other after which they adopt complementary roles. One sets up periodic advertising. The other attempts to scan and sync with the periodic advertising.
4-
5-
The role of the scanner device can also be performed by a BLE scanner on a smartphone. Connect to the advertiser. This will establish it as the advertiser. After you disconnect the device will begin periodic advertising.
5+
The role of the scanner device can also be performed by a BLE scanner on a smartphone.
6+
Connect to the advertiser. This will establish it as the advertiser. After you disconnect the device will begin periodic
7+
advertising.
68

79
# Running the application
810

911
## Requirements
1012

11-
Devices must support extended advertising and periodic advertising (Bluetooth version 5+).
12-
13-
The sample application can also be monitored by any BLE scanner on a smartphone.
14-
15-
If you don't have a scanner on your phone, please install:
13+
Hardware requirements are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md).
1614

17-
- [nRF Master Control Panel](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) for Android.
18-
19-
- [LightBlue](https://itunes.apple.com/gb/app/lightblue-bluetooth-low-energy/id557428110?mt=8) for iPhone.
20-
21-
Information about activity is printed over the serial connection - please have a client open. You may use:
22-
23-
- [Tera Term](https://ttssh2.osdn.jp/index.html.en)
15+
Devices must support extended advertising and periodic advertising (Bluetooth version 5+).
2416

2517
## Building instructions
2618

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

BLE_PeriodicAdvertising/mbed_app.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"target_overrides": {
3+
"*": {
4+
"platform.stdio-baud-rate": 115200
5+
},
36
"K64F": {
47
"target.components_add": ["BlueNRG_MS"],
58
"target.features_add": ["BLE"],

0 commit comments

Comments
 (0)