Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Bluetooth testing callbacks

Bluetooth testing. More...

Data Structures

struct  bt_test_cb
 Bluetooth Testing callbacks structure. More...
 

Functions

int bt_test_cb_register (struct bt_test_cb *cb)
 Register callbacks for Bluetooth testing purposes.
 
void bt_test_cb_unregister (struct bt_test_cb *cb)
 Unregister callbacks for Bluetooth testing purposes.
 
int bt_test_mesh_lpn_group_add (uint16_t group)
 Send Friend Subscription List Add message.
 
int bt_test_mesh_lpn_group_remove (uint16_t *groups, size_t groups_count)
 Send Friend Subscription List Remove message.
 
int bt_test_mesh_rpl_clear (void)
 Clear replay protection list cache.
 

Detailed Description

Bluetooth testing.

Function Documentation

◆ bt_test_cb_register()

int bt_test_cb_register ( struct bt_test_cb cb)

#include <zephyr/bluetooth/testing.h>

Register callbacks for Bluetooth testing purposes.

Parameters
cbbt_test_cb callback structure
Return values
0Success.
-EEXISTif cb was already registered.

◆ bt_test_cb_unregister()

void bt_test_cb_unregister ( struct bt_test_cb cb)

#include <zephyr/bluetooth/testing.h>

Unregister callbacks for Bluetooth testing purposes.

Parameters
cbbt_test_cb callback structure

◆ bt_test_mesh_lpn_group_add()

int bt_test_mesh_lpn_group_add ( uint16_t  group)

#include <zephyr/bluetooth/testing.h>

Send Friend Subscription List Add message.

Used by Low Power node to send the group address for which messages are to be stored by Friend node.

Parameters
groupGroup address
Returns
Zero on success or (negative) error code otherwise.

◆ bt_test_mesh_lpn_group_remove()

int bt_test_mesh_lpn_group_remove ( uint16_t groups,
size_t  groups_count 
)

#include <zephyr/bluetooth/testing.h>

Send Friend Subscription List Remove message.

Used by Low Power node to remove the group addresses from Friend node subscription list. Messages sent to those addresses will not be stored by Friend node.

Parameters
groupsGroup addresses
groups_countGroup addresses count
Returns
Zero on success or (negative) error code otherwise.

◆ bt_test_mesh_rpl_clear()

int bt_test_mesh_rpl_clear ( void  )

#include <zephyr/bluetooth/testing.h>

Clear replay protection list cache.

Returns
Zero on success or (negative) error code otherwise.