Connectable advertising that follows what there is to advertise.
More...
Connectable advertising that follows what there is to advertise.
A device has a few advertisements, e.g. one to be discovered and one for a bonded peer to reconnect to, each enabled when it applies. The first one enabled, in the order they are given, is on air while there is no connection. It airs at a short interval for some time, to be found fast, and at a long one from then on, to save power. A stack that refuses to advertise is asked again a second later.
◆ pbl_bt_adv_disable()
| void pbl_bt_adv_disable |
( |
struct pbl_bt_adv * |
adv | ) |
|
Disable an advertisement.
- Parameters
-
◆ pbl_bt_adv_enable()
| void pbl_bt_adv_enable |
( |
struct pbl_bt_adv * |
adv, |
|
|
uint16_t |
short_secs |
|
) |
| |
Enable an advertisement, or air it anew if it is enabled: its payloads are set again.
- Parameters
-
| adv | The advertisement. |
| short_secs | How long it airs at the short interval, in seconds. |
◆ pbl_bt_adv_start()
Start advertising what is enabled, once the host is synchronized.
Every advertisement starts disabled.
- Parameters
-
| config | How to advertise. It must outlive the advertising. |
◆ pbl_bt_adv_stop()
| void pbl_bt_adv_stop |
( |
void |
| ) |
|
Stop advertising, and disable every advertisement.