7#ifndef ZEPHYR_INCLUDE_BT_MESH_RPR_CLI_H__
8#define ZEPHYR_INCLUDE_BT_MESH_RPR_CLI_H__
29#define BT_MESH_RPR_SCAN_MAX_DEVS_ANY 0
39#define BT_MESH_MODEL_RPR_CLI(_cli) \
40 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_REMOTE_PROV_CLI, \
41 _bt_mesh_rpr_cli_op, NULL, _cli, &_bt_mesh_rpr_cli_cb)
191 const uint8_t *ad_types,
size_t ad_count);
int bt_mesh_rpr_scan_stop(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, struct bt_mesh_rpr_scan_status *status)
Stop any ongoing scanning on the Remote Provisioning Server.
int bt_mesh_rpr_scan_get(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, struct bt_mesh_rpr_scan_status *status)
Get current scanning state of Remote Provisioning Server.
int bt_mesh_rpr_scan_caps_get(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, struct bt_mesh_rpr_caps *caps)
Get scanning capabilities of Remote Provisioning Server.
int bt_mesh_rpr_link_get(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, struct bt_mesh_rpr_link *rsp)
Get the current link status of the Remote Provisioning Server.
void bt_mesh_rpr_cli_timeout_set(int32_t timeout)
Set the transmission timeout value.
int bt_mesh_rpr_scan_start_ext(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, const uint8_t uuid[16], uint8_t timeout, const uint8_t *ad_types, size_t ad_count)
Start extended scanning for unprovisioned devices.
int32_t bt_mesh_rpr_cli_timeout_get(void)
Get the current transmission timeout value.
int bt_mesh_rpr_link_close(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, struct bt_mesh_rpr_link *rsp)
Close any open link on the Remote Provisioning Server.
int bt_mesh_rpr_scan_start(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, const uint8_t uuid[16], uint8_t timeout, uint8_t max_devs, struct bt_mesh_rpr_scan_status *status)
Start scanning for unprovisioned devices.
bt_mesh_rpr_link_state
Definition: rpr.h:67
bt_mesh_rpr_status
Definition: rpr.h:37
bt_mesh_rpr_scan
Definition: rpr.h:52
__INT32_TYPE__ int32_t
Definition: stdint.h:74
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Model callback functions.
Definition: access.h:809
Model opcode handler.
Definition: access.h:359
Abstraction that describes a Mesh Model instance.
Definition: access.h:887
Acknowledged message context for tracking the status of model messages pending a response.
Definition: msg.h:172
Remote Provisioning Server scanning capabilities.
Definition: rpr_cli.h:56
bool active_scan
Supports active scan.
Definition: rpr_cli.h:60
uint8_t max_devs
Max number of scannable devices.
Definition: rpr_cli.h:58
Remote Provisioning Client model instance.
Definition: rpr_cli.h:64
struct bt_mesh_rpr_cli::@112 link
struct bt_mesh_msg_ack_ctx prov_ack_ctx
Definition: rpr_cli.h:83
const struct bt_mesh_model * mod
Definition: rpr_cli.h:94
void(* scan_report)(struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, struct bt_mesh_rpr_unprov *unprov, struct net_buf_simple *adv_data)
Scan report callback.
Definition: rpr_cli.h:75
uint8_t tx_pdu
Definition: rpr_cli.h:89
uint8_t rx_pdu
Definition: rpr_cli.h:90
struct bt_mesh_rpr_node srv
Definition: rpr_cli.h:87
struct bt_mesh_msg_ack_ctx scan_ack_ctx
Definition: rpr_cli.h:82
enum bt_mesh_rpr_link_state state
Definition: rpr_cli.h:91
uint8_t time
Definition: rpr_cli.h:88
Remote Provisioning Link status.
Definition: rpr.h:103
Remote provisioning actor, as seen across the mesh.
Definition: rpr.h:76
Scan status response.
Definition: rpr_cli.h:44
enum bt_mesh_rpr_status status
Current scan status.
Definition: rpr_cli.h:46
uint8_t timeout
Seconds remaining of the scan.
Definition: rpr_cli.h:52
uint8_t max_devs
Max number of devices to report in current scan.
Definition: rpr_cli.h:50
enum bt_mesh_rpr_scan scan
Current scan state.
Definition: rpr_cli.h:48
Unprovisioned device.
Definition: rpr.h:86
A structure used to submit work after a delay.
Definition: kernel.h:3908
Simple network buffer representation.
Definition: buf.h:87