.

Demo for periodic advertising. This requires two devices to run. Both devices run the same program. They attempt to 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.

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. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_PeriodicAdvertising

Running the application

Requirements

Devices must support extended advertising and periodic advertising (Bluetooth version 5+).

The sample application can also be monitored by any BLE scanner on a smartphone.

If you don't have a scanner on your phone, please install:

Information about activity is printed over the serial connection - please have a client open. You may use:

Building instructions

Building instructions for all samples are in the https:github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md.

Committer:
mbed_official
Date:
Thu Aug 15 17:02:13 2019 +0100
Revision:
3:68c67fc9134e
Parent:
0:c736663c1bcc
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 0:c736663c1bcc 1 # Periodic advertising and scanning
mbed_official 0:c736663c1bcc 2
mbed_official 0:c736663c1bcc 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.
mbed_official 0:c736663c1bcc 4
mbed_official 0:c736663c1bcc 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.
mbed_official 0:c736663c1bcc 6
mbed_official 0:c736663c1bcc 7 # Running the application
mbed_official 0:c736663c1bcc 8
mbed_official 0:c736663c1bcc 9 ## Requirements
mbed_official 0:c736663c1bcc 10
mbed_official 0:c736663c1bcc 11 Devices must support extended advertising and periodic advertising (Bluetooth version 5+).
mbed_official 0:c736663c1bcc 12
mbed_official 0:c736663c1bcc 13 The sample application can also be monitored by any BLE scanner on a smartphone.
mbed_official 0:c736663c1bcc 14
mbed_official 0:c736663c1bcc 15 If you don't have a scanner on your phone, please install:
mbed_official 0:c736663c1bcc 16
mbed_official 0:c736663c1bcc 17 - [nRF Master Control Panel](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) for Android.
mbed_official 0:c736663c1bcc 18
mbed_official 0:c736663c1bcc 19 - [LightBlue](https://itunes.apple.com/gb/app/lightblue-bluetooth-low-energy/id557428110?mt=8) for iPhone.
mbed_official 0:c736663c1bcc 20
mbed_official 0:c736663c1bcc 21 Information about activity is printed over the serial connection - please have a client open. You may use:
mbed_official 0:c736663c1bcc 22
mbed_official 0:c736663c1bcc 23 - [Tera Term](https://ttssh2.osdn.jp/index.html.en)
mbed_official 0:c736663c1bcc 24
mbed_official 0:c736663c1bcc 25 ## Building instructions
mbed_official 0:c736663c1bcc 26
mbed_official 0:c736663c1bcc 27 Building instructions for all samples are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md).