PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
pbl_bt_adv_config Struct Reference

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.
 

Detailed Description

How to advertise.

Field Documentation

◆ advs

struct pbl_bt_adv* const* pbl_bt_adv_config::advs

The advertisements, the one to air first when several are enabled first.

◆ changed

void(* pbl_bt_adv_config::changed) (const struct pbl_bt_adv *adv, bool short_interval)

What is on air changed.

Optional.

Parameters
advThe advertisement on air, NULL if none is.
short_intervalWhether it airs at the short interval.

◆ churn_threshold

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.

◆ churn_window_secs

uint16_t pbl_bt_adv_config::churn_window_secs

See churn_threshold.

◆ gap_event

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().

◆ gap_event_arg

void* pbl_bt_adv_config::gap_event_arg

Its argument.

◆ long_interval_ms

uint16_t pbl_bt_adv_config::long_interval_ms

Long advertising interval, in milliseconds.

◆ num_advs

size_t pbl_bt_adv_config::num_advs

Number of advertisements.

◆ short_interval_ms

uint16_t pbl_bt_adv_config::short_interval_ms

Short advertising interval, in milliseconds.


The documentation for this struct was generated from the following file: