Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_mesh_lpn_cb Struct Reference

Low Power Node callback functions. More...

#include <main.h>

Data Fields

void(* established )(uint16_t net_idx, uint16_t friend_addr, uint8_t queue_size, uint8_t recv_window)
 Friendship established.
 
void(* terminated )(uint16_t net_idx, uint16_t friend_addr)
 Friendship terminated.
 
void(* polled )(uint16_t net_idx, uint16_t friend_addr, bool retry)
 Local Poll Request.
 

Detailed Description

Low Power Node callback functions.

Field Documentation

◆ established

void(* bt_mesh_lpn_cb::established) (uint16_t net_idx, uint16_t friend_addr, uint8_t queue_size, uint8_t recv_window)

Friendship established.

This callback notifies the application that friendship has been successfully established.

Parameters
net_idxNetKeyIndex used during friendship establishment.
friend_addrFriend address.
queue_sizeFriend queue size.
recv_windowLow Power Node's listens duration for Friend response.

◆ polled

void(* bt_mesh_lpn_cb::polled) (uint16_t net_idx, uint16_t friend_addr, bool retry)

Local Poll Request.

This callback notifies the application that the local node has polled the friend node.

This callback will be called before bt_mesh_lpn_cb::established when attempting to establish a friendship.

Parameters
net_idxNetKeyIndex used during friendship establishment.
friend_addrFriend address.
retryRetry or first poll request for each transaction.

◆ terminated

void(* bt_mesh_lpn_cb::terminated) (uint16_t net_idx, uint16_t friend_addr)

Friendship terminated.

This callback notifies the application that friendship has been terminated.

Parameters
net_idxNetKeyIndex used during friendship establishment.
friend_addrFriend address.

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