Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Health Client Model Context. More...
#include <health_cli.h>
Data Fields | |
const struct bt_mesh_model * | model |
Composition data model entry pointer. | |
struct bt_mesh_model_pub | pub |
Publication structure instance. | |
struct net_buf_simple | pub_buf |
Publication buffer. | |
uint8_t | pub_data [BT_MESH_MODEL_BUF_LEN(BT_MESH_MODEL_OP_2(0x80, 0x32), 3)] |
Publication data. | |
void(* | period_status )(struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t divisor) |
Optional callback for Health Period Status messages. | |
void(* | attention_status )(struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t attention) |
Optional callback for Health Attention Status messages. | |
void(* | fault_status )(struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t test_id, uint16_t cid, uint8_t *faults, size_t fault_count) |
Optional callback for Health Fault Status messages. | |
void(* | current_status )(struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t test_id, uint16_t cid, uint8_t *faults, size_t fault_count) |
Optional callback for Health Current Status messages. | |
struct bt_mesh_msg_ack_ctx | ack_ctx |
Health Client Model Context.
struct bt_mesh_msg_ack_ctx bt_mesh_health_cli::ack_ctx |
void(* bt_mesh_health_cli::attention_status) (struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t attention) |
Optional callback for Health Attention Status messages.
Handles received Health Attention Status messages from a Health server. The attention
param represents the current attention value.
cli | Health client that received the status message. |
addr | Address of the sender. |
attention | Current attention value. |
void(* bt_mesh_health_cli::current_status) (struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t test_id, uint16_t cid, uint8_t *faults, size_t fault_count) |
Optional callback for Health Current Status messages.
Handles received Health Current Status messages from a Health server. The fault
array represents all faults that are currently present in the server's element.
cli | Health client that received the status message. |
addr | Address of the sender. |
test_id | Identifier of a most recently performed test. |
cid | Company Identifier of the node. |
faults | Array of faults. |
fault_count | Number of faults in the fault array. |
void(* bt_mesh_health_cli::fault_status) (struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t test_id, uint16_t cid, uint8_t *faults, size_t fault_count) |
Optional callback for Health Fault Status messages.
Handles received Health Fault Status messages from a Health server. The fault
array represents all faults that are currently present in the server's element.
cli | Health client that received the status message. |
addr | Address of the sender. |
test_id | Identifier of a most recently performed test. |
cid | Company Identifier of the node. |
faults | Array of faults. |
fault_count | Number of faults in the fault array. |
const struct bt_mesh_model* bt_mesh_health_cli::model |
Composition data model entry pointer.
void(* bt_mesh_health_cli::period_status) (struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t divisor) |
Optional callback for Health Period Status messages.
Handles received Health Period Status messages from a Health server. The divisor
param represents the period divisor value.
cli | Health client that received the status message. |
addr | Address of the sender. |
divisor | Health Period Divisor value. |
struct bt_mesh_model_pub bt_mesh_health_cli::pub |
Publication structure instance.
struct net_buf_simple bt_mesh_health_cli::pub_buf |
Publication buffer.
uint8_t bt_mesh_health_cli::pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_MODEL_OP_2(0x80, 0x32), 3)] |
Publication data.