.
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.
.mbed@3:68c67fc9134e, 2019-08-15 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:c736663c1bcc | 1 | ROOT=. |