Skip to content

Commit 1566b89

Browse files
author
Amanda Butler
authored
Merge pull request #833 from paul-szczepanek-arm/ble-gap-extended
Extended advertising added to Gap docs
2 parents 5d6e6e7 + 35313ef commit 1566b89

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/api/bluetooth/Gap.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,25 @@ Advertising, scanning and connection all have parameters that let you find a com
1212

1313
Advertising consists of broadcasting at a regular interval a small amount of data containing valuable information about the device. Peer devices listening on BLE advertising channels may scan these packets.
1414

15-
Scanners may also request additional information from device advertising by sending a scan request. If the broadcaster accepts scan requests, it can reply with a scan response packet containing additional information.
15+
Scanners may also request additional information from device advertising by sending a scan request. If the broadcaster accepts scan requests, it can reply with a scan response packet containing additional information.
1616

1717
#### Scanning
1818

1919
Scanning consists of listening for peer advertising packets. From a scan, a device can identify devices available in its environment.
2020

2121
If the device scans actively, it sends scan request to scannable advertisers and collects their scan responses.
22+
23+
#### Extended and periodic advertising
24+
25+
BLE controllers supporting Bluetooth 5.0 may offer additional advertising and scanning options. Use `isFeatureSupported()` to check feature availability.
26+
27+
Extended advertising may use multiple PHYs and spread the payload across many packets. This allows for much larger payloads. In this scenario, advertising is split across primary advertising on the advertising channels and secondary advertising using channels normally used for sending data to connected devices.
28+
29+
Similarly, if the controller supports periodic advertising, you may use periodic advertising to send changing data to many peers. Each peer needs to scan the advertisements on the primary channels and create a sync with a periodic advertisement it's interested in.
30+
31+
There may be many advertising sets active at one time on a single advertiser. This allows it to advertise different data at the same time, possibly to different peers.
32+
33+
Devices that do not support extended and periodic advertising will not see these advertisements. You may use legacy advertising alongside extended advertising, running at the same time, to support older devices in the environment.
2234

2335
#### Privacy
2436

0 commit comments

Comments
 (0)