Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
|
4.1.99 |
Callback struct to notify about advertiser activity. More...
#include <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. | |
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:
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.
adv | The advertising set object. |
info | Information about the connected event. |
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.
adv | The advertising set object. |
info | Information about the scanned event, namely the address. |
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.
adv | The advertising set object. |
info | Information about the sent event. |