Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Listener context for (LE) scanning. More...

#include <bluetooth.h>

Data Fields

void(* recv )(const struct bt_le_scan_recv_info *info, struct net_buf_simple *buf)
 Advertisement packet and scan response received callback.
void(* timeout )(void)
 The scanner has stopped scanning after scan timeout.
sys_snode_t node

Detailed Description

Listener context for (LE) scanning.

Note
The callbacks are invoked from a thread context, never from an ISR. Whether a callback is invoked from a context internal to the stack or synchronously from within the API call that triggers it, and from which context, is not part of the API and may change between releases. See @rstref{Callback execution contexts <bluetooth_callback_contexts>} for the hazards of blocking in a callback and their mitigations.

Field Documentation

◆ node

sys_snode_t bt_le_scan_cb::node

◆ recv

void(* bt_le_scan_cb::recv) (const struct bt_le_scan_recv_info *info, struct net_buf_simple *buf)

Advertisement packet and scan response received callback.

Parameters
infoAdvertiser packet and scan response information.
bufBuffer containing advertiser data.

◆ timeout

void(* bt_le_scan_cb::timeout) (void)

The scanner has stopped scanning after scan timeout.


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