|
PebbleOS v4.47.0-1161-g94e3d98da
|
How to advertise. More...
#include <adv.h>
Data Fields | |
| struct pbl_bt_adv *const * | advs |
| The advertisements, the one to air first when several are enabled first. | |
| size_t | num_advs |
| Number of advertisements. | |
| uint16_t | short_interval_ms |
| Short advertising interval, in milliseconds. | |
| uint16_t | long_interval_ms |
| Long advertising interval, in milliseconds. | |
| uint8_t | churn_threshold |
Connections that end this many times within churn_window_secs no longer bring the short interval back: a peer that reconnects and drops over and over would otherwise keep the device at it. | |
| uint16_t | churn_window_secs |
See churn_threshold. | |
| ble_gap_event_fn * | gap_event |
Handler of the GAP events of the connections made, as given to ble_gap_adv_start(). | |
| void * | gap_event_arg |
| Its argument. | |
| void(* | changed )(const struct pbl_bt_adv *adv, bool short_interval) |
| What is on air changed. | |
How to advertise.
| struct pbl_bt_adv* const* pbl_bt_adv_config::advs |
The advertisements, the one to air first when several are enabled first.
| void(* pbl_bt_adv_config::changed) (const struct pbl_bt_adv *adv, bool short_interval) |
What is on air changed.
Optional.
| adv | The advertisement on air, NULL if none is. |
| short_interval | Whether it airs at the short interval. |
| uint8_t pbl_bt_adv_config::churn_threshold |
Connections that end this many times within churn_window_secs no longer bring the short interval back: a peer that reconnects and drops over and over would otherwise keep the device at it.
0 to always bring it back.
| uint16_t pbl_bt_adv_config::churn_window_secs |
See churn_threshold.
| ble_gap_event_fn* pbl_bt_adv_config::gap_event |
Handler of the GAP events of the connections made, as given to ble_gap_adv_start().
| void* pbl_bt_adv_config::gap_event_arg |
Its argument.
| uint16_t pbl_bt_adv_config::long_interval_ms |
Long advertising interval, in milliseconds.
| size_t pbl_bt_adv_config::num_advs |
Number of advertisements.
| uint16_t pbl_bt_adv_config::short_interval_ms |
Short advertising interval, in milliseconds.