Lines Matching refs:msg
193 BT_MESH_MODEL_BUF_DEFINE(msg, OP_ATTENTION_GET, 0); in bt_mesh_health_cli_attention_get()
198 bt_mesh_model_msg_init(&msg, OP_ATTENTION_GET); in bt_mesh_health_cli_attention_get()
207 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, attention ? &rsp : NULL); in bt_mesh_health_cli_attention_get()
213 BT_MESH_MODEL_BUF_DEFINE(msg, OP_ATTENTION_SET, 1); in bt_mesh_health_cli_attention_set()
218 bt_mesh_model_msg_init(&msg, OP_ATTENTION_SET); in bt_mesh_health_cli_attention_set()
219 net_buf_simple_add_u8(&msg, attention); in bt_mesh_health_cli_attention_set()
228 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_attention ? &rsp : NULL); in bt_mesh_health_cli_attention_set()
234 BT_MESH_MODEL_BUF_DEFINE(msg, OP_ATTENTION_SET_UNREL, 1); in bt_mesh_health_cli_attention_set_unack()
236 bt_mesh_model_msg_init(&msg, OP_ATTENTION_SET_UNREL); in bt_mesh_health_cli_attention_set_unack()
237 net_buf_simple_add_u8(&msg, attention); in bt_mesh_health_cli_attention_set_unack()
239 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_attention_set_unack()
245 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_PERIOD_GET, 0); in bt_mesh_health_cli_period_get()
250 bt_mesh_model_msg_init(&msg, OP_HEALTH_PERIOD_GET); in bt_mesh_health_cli_period_get()
259 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, divisor ? &rsp : NULL); in bt_mesh_health_cli_period_get()
265 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_PERIOD_SET, 1); in bt_mesh_health_cli_period_set()
270 bt_mesh_model_msg_init(&msg, OP_HEALTH_PERIOD_SET); in bt_mesh_health_cli_period_set()
271 net_buf_simple_add_u8(&msg, divisor); in bt_mesh_health_cli_period_set()
280 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_divisor ? &rsp : NULL); in bt_mesh_health_cli_period_set()
286 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_PERIOD_SET_UNREL, 1); in bt_mesh_health_cli_period_set_unack()
288 bt_mesh_model_msg_init(&msg, OP_HEALTH_PERIOD_SET_UNREL); in bt_mesh_health_cli_period_set_unack()
289 net_buf_simple_add_u8(&msg, divisor); in bt_mesh_health_cli_period_set_unack()
291 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_period_set_unack()
298 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_FAULT_TEST, 3); in bt_mesh_health_cli_fault_test()
306 bt_mesh_model_msg_init(&msg, OP_HEALTH_FAULT_TEST); in bt_mesh_health_cli_fault_test()
307 net_buf_simple_add_u8(&msg, test_id); in bt_mesh_health_cli_fault_test()
308 net_buf_simple_add_le16(&msg, cid); in bt_mesh_health_cli_fault_test()
317 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, &rsp); in bt_mesh_health_cli_fault_test()
323 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_FAULT_TEST_UNREL, 3); in bt_mesh_health_cli_fault_test_unack()
325 bt_mesh_model_msg_init(&msg, OP_HEALTH_FAULT_TEST_UNREL); in bt_mesh_health_cli_fault_test_unack()
326 net_buf_simple_add_u8(&msg, test_id); in bt_mesh_health_cli_fault_test_unack()
327 net_buf_simple_add_le16(&msg, cid); in bt_mesh_health_cli_fault_test_unack()
329 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_fault_test_unack()
336 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_FAULT_CLEAR, 2); in bt_mesh_health_cli_fault_clear()
344 bt_mesh_model_msg_init(&msg, OP_HEALTH_FAULT_CLEAR); in bt_mesh_health_cli_fault_clear()
345 net_buf_simple_add_le16(&msg, cid); in bt_mesh_health_cli_fault_clear()
354 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_health_cli_fault_clear()
361 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_FAULT_CLEAR_UNREL, 2); in bt_mesh_health_cli_fault_clear_unack()
363 bt_mesh_model_msg_init(&msg, OP_HEALTH_FAULT_CLEAR_UNREL); in bt_mesh_health_cli_fault_clear_unack()
364 net_buf_simple_add_le16(&msg, cid); in bt_mesh_health_cli_fault_clear_unack()
366 return bt_mesh_msg_send(cli->model, ctx, &msg); in bt_mesh_health_cli_fault_clear_unack()
373 BT_MESH_MODEL_BUF_DEFINE(msg, OP_HEALTH_FAULT_GET, 2); in bt_mesh_health_cli_fault_get()
381 bt_mesh_model_msg_init(&msg, OP_HEALTH_FAULT_GET); in bt_mesh_health_cli_fault_get()
382 net_buf_simple_add_le16(&msg, cid); in bt_mesh_health_cli_fault_get()
391 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, in bt_mesh_health_cli_fault_get()
430 cli->pub.msg = &cli->pub_buf; in health_cli_init()
442 net_buf_simple_reset(cli->pub.msg); in health_cli_reset()