Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_le_ext_adv_cb Struct Reference

Callback struct to notify about advertiser activity. More...

#include <zephyr/bluetooth/bluetooth.h>

Data Fields

void(* sent )(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_sent_info *info)
 The advertising set was disabled after reaching limit.
void(* connected )(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_connected_info *info)
 The advertising set has accepted a new connection.
void(* scanned )(struct bt_le_ext_adv *adv, struct bt_le_ext_adv_scanned_info *info)
 The advertising set has sent scan response data.
void(* pawr_data_request )(struct bt_le_ext_adv *adv, const struct bt_le_per_adv_data_request *request)
 The Controller indicates it is ready to transmit one or more PAwR subevents.
void(* pawr_response )(struct bt_le_ext_adv *adv, struct bt_le_per_adv_response_info *info, struct net_buf_simple *buf)
 The Controller indicates that one or more synced devices have responded to a periodic advertising subevent indication.

Detailed Description

Callback struct to notify about advertiser activity.

The bt_le_ext_adv_cb struct contains callback functions that are invoked in response to various events related to the advertising set. These events include:

  • Completion of advertising data transmission
  • Acceptance of a new connection
  • Transmission of scan response data
  • If privacy is enabled:
    • Expiration of the advertising set's validity
  • If PAwR (Periodic Advertising with Response) is enabled:
    • Readiness to send one or more PAwR subevents, namely the LE Periodic Advertising Subevent Data Request event
    • Response of synced devices to a periodic advertising subevent indication has been received, namely the LE Periodic Advertising Response Report event
Note
Must point to valid memory during the lifetime of the advertising set.
Used in bt_le_ext_adv_create.

Field Documentation

◆ connected

void(* bt_le_ext_adv_cb::connected) (struct bt_le_ext_adv *adv, struct bt_le_ext_adv_connected_info *info)

The advertising set has accepted a new connection.

This callback notifies the application that the advertising set has accepted a new connection.

Parameters
advThe advertising set object.
infoInformation about the connected event.

◆ pawr_data_request

void(* bt_le_ext_adv_cb::pawr_data_request) (struct bt_le_ext_adv *adv, const struct bt_le_per_adv_data_request *request)

The Controller indicates it is ready to transmit one or more PAwR subevents.

This callback notifies the application that the controller has requested data for upcoming subevents.

Parameters
advThe advertising set object.
requestInformation about the upcoming subevents.
Attention
Available only when the following Kconfig option is enabled: CONFIG_BT_PER_ADV_RSP.

◆ pawr_response

void(* bt_le_ext_adv_cb::pawr_response) (struct bt_le_ext_adv *adv, struct bt_le_per_adv_response_info *info, struct net_buf_simple *buf)

The Controller indicates that one or more synced devices have responded to a periodic advertising subevent indication.

Parameters
advThe advertising set object.
infoInformation about the responses received.
bufThe received data. NULL if the controller reported that it did not receive any response.
Attention
Available only when the following Kconfig option is enabled: CONFIG_BT_PER_ADV_RSP.

◆ scanned

void(* bt_le_ext_adv_cb::scanned) (struct bt_le_ext_adv *adv, struct bt_le_ext_adv_scanned_info *info)

The advertising set has sent scan response data.

This callback notifies the application that the advertising set has has received a Scan Request packet, and has sent a Scan Response packet.

Parameters
advThe advertising set object.
infoInformation about the scanned event, namely the address.

◆ sent

void(* bt_le_ext_adv_cb::sent) (struct bt_le_ext_adv *adv, struct bt_le_ext_adv_sent_info *info)

The advertising set was disabled after reaching limit.

This callback is invoked when the limit set in bt_le_ext_adv_start_param::timeout or bt_le_ext_adv_start_param::num_events is reached.

Parameters
advThe advertising set object.
infoInformation about the sent event.

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