Home
last modified time | relevance | path

Searched refs:app_idx (Results 1 – 25 of 61) sorted by relevance

123

/Zephyr-latest/subsys/bluetooth/mesh/
Dapp_keys.c52 uint16_t app_idx; member
64 .app_idx = BT_MESH_KEY_UNUSED,
69 static struct app_key *app_get(uint16_t app_idx) in app_get() argument
72 if (apps[i].app_idx == app_idx) { in app_get()
80 static void clear_app_key(uint16_t app_idx) in clear_app_key() argument
85 snprintk(path, sizeof(path), "bt/mesh/AppKey/%x", app_idx); in clear_app_key()
88 LOG_ERR("Failed to clear AppKeyIndex 0x%03x", app_idx); in clear_app_key()
90 LOG_DBG("Cleared AppKeyIndex 0x%03x", app_idx); in clear_app_key()
94 static void store_app_key(uint16_t app_idx) in store_app_key() argument
101 snprintk(path, sizeof(path), "bt/mesh/AppKey/%x", app_idx); in store_app_key()
[all …]
Dop_agg_cli.c52 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in handle_status()
124 int bt_mesh_op_agg_cli_seq_start(uint16_t net_idx, uint16_t app_idx, uint16_t dst, in bt_mesh_op_agg_cli_seq_start() argument
138 cli.ctx.app_idx = app_idx; in bt_mesh_op_agg_cli_seq_start()
153 .app_idx = cli.ctx.app_idx, in bt_mesh_op_agg_cli_seq_send()
222 (ctx->addr == cli.ctx.addr) && (ctx->app_idx == cli.ctx.app_idx) && in bt_mesh_op_agg_cli_accept()
Dcdb.c97 .app_idx = BT_MESH_KEY_UNUSED,
347 uint16_t app_idx; in cdb_app_key_set() local
355 app_idx = strtol(name, NULL, 16); in cdb_app_key_set()
359 LOG_DBG("Deleting AppKeyIndex 0x%03x", app_idx); in cdb_app_key_set()
361 app = bt_mesh_cdb_app_key_get(app_idx); in cdb_app_key_set()
381 app = bt_mesh_cdb_app_key_get(app_idx); in cdb_app_key_set()
383 app = bt_mesh_cdb_app_key_alloc(key.net_idx, app_idx); in cdb_app_key_set()
394 LOG_DBG("AppKeyIndex 0x%03x recovered from storage", app_idx); in cdb_app_key_set()
534 snprintk(path, sizeof(path), "bt/mesh/cdb/AppKey/%x", app->app_idx); in store_cdb_app_key()
544 static void clear_cdb_app_key(uint16_t app_idx) in clear_cdb_app_key() argument
[all …]
Dop_agg_srv.c54 srv.ctx.app_idx = ctx->app_idx; in handle_sequence()
153 (ctx->addr == srv.ctx.addr) && (ctx->app_idx == srv.ctx.app_idx) && in bt_mesh_op_agg_srv_accept()
Dcfg_srv.c58 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in dev_comp_data_get()
116 const uint8_t *uuid, uint16_t app_idx, uint8_t cred_flag, in _mod_pub_set() argument
159 if (!bt_mesh_app_key_exists(app_idx) || !bt_mesh_model_has_key(model, app_idx)) { in _mod_pub_set()
170 model->pub->key = app_idx; in _mod_pub_set()
289 uint16_t app_idx, uint16_t net_idx) in send_app_key_status() argument
295 key_idx_pack_pair(&msg, net_idx, app_idx); in send_app_key_status()
341 uint16_t *app_idx = user_data; in mod_app_key_del() local
343 mod_unbind(mod, *app_idx, true); in mod_app_key_del()
346 static void app_key_evt(uint16_t app_idx, uint16_t net_idx, in app_key_evt() argument
350 bt_mesh_model_foreach(&mod_app_key_del, &app_idx); in app_key_evt()
[all …]
Dmesh.h21 void (*evt_handler)(uint16_t app_idx, uint16_t net_idx,
Dapp_keys.h25 int bt_mesh_app_key_set(uint16_t app_idx, uint16_t net_idx,
Dop_agg.h13 uint16_t app_idx; member
Dcfg_cli.c60 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in comp_data_status()
96 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in state_status_u8()
189 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in krp_status()
234 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in relay_status()
289 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in net_key_status()
356 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in net_key_list()
390 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x", ctx->net_idx, ctx->app_idx, ctx->addr); in node_reset_status()
412 uint16_t app_idx; member
420 uint16_t net_idx, app_idx; in app_key_status() local
424 LOG_DBG("net_idx 0x%04x app_idx 0x%04x src 0x%04x len %u: %s", ctx->net_idx, ctx->app_idx, in app_key_status()
[all …]
Ddfd_srv_internal.h17 uint16_t app_idx, timeout_base, slot_idx, group; member
Dlarge_comp_data_srv.c54 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in handle_large_comp_data_get()
116 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in handle_models_metadata_get()
/Zephyr-latest/samples/bluetooth/mesh_provisioner/src/
Dmain.c16 static const uint16_t app_idx; variable
78 key = bt_mesh_cdb_app_key_alloc(net_idx, app_idx); in setup_cdb()
80 printk("Failed to allocate app-key 0x%04x\n", app_idx); in setup_cdb()
106 key = bt_mesh_cdb_app_key_get(app_idx); in configure_self()
108 printk("No app-key 0x%04x\n", app_idx); in configure_self()
119 err = bt_mesh_cfg_cli_app_key_add(self->net_idx, self->addr, self->net_idx, app_idx, in configure_self()
127 err = bt_mesh_cfg_cli_mod_app_bind(self->net_idx, self->addr, self->addr, app_idx, in configure_self()
156 key = bt_mesh_cdb_app_key_get(app_idx); in configure_node()
158 printk("No app-key 0x%04x\n", app_idx); in configure_node()
169 err = bt_mesh_cfg_cli_app_key_add(net_idx, node->addr, net_idx, app_idx, app_key, &status); in configure_node()
[all …]
/Zephyr-latest/samples/bluetooth/mesh_demo/src/
Dmain.c38 static const uint16_t app_idx; variable
123 bt_mesh_cfg_cli_app_key_add(net_idx, addr, net_idx, app_idx, app_key, NULL); in configure()
126 bt_mesh_cfg_cli_mod_app_bind_vnd(net_idx, addr, addr, app_idx, MOD_LF, BT_COMP_ID_LF, NULL); in configure()
129 bt_mesh_cfg_cli_mod_app_bind(net_idx, addr, addr, app_idx, BT_MESH_MODEL_ID_HEALTH_SRV, in configure()
225 .app_idx = app_idx, in board_button_1_pressed()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dcfg.h538 uint8_t bt_mesh_app_key_add(uint16_t app_idx, uint16_t net_idx,
565 uint8_t bt_mesh_app_key_update(uint16_t app_idx, uint16_t net_idx,
580 uint8_t bt_mesh_app_key_del(uint16_t app_idx, uint16_t net_idx);
588 bool bt_mesh_app_key_exists(uint16_t app_idx);
Dmsg.h81 uint16_t app_idx; member
122 .app_idx = (app_key_idx), \
153 .app_idx = (pub)->key, \
Dcdb.h57 uint16_t app_idx; member
336 uint16_t app_idx);
356 struct bt_mesh_cdb_app_key *bt_mesh_cdb_app_key_get(uint16_t app_idx);
Dop_agg_cli.h39 int bt_mesh_op_agg_cli_seq_start(uint16_t net_idx, uint16_t app_idx, uint16_t dst,
Dshell.h35 uint16_t app_idx; member
Dblob_srv.h145 uint16_t app_idx; member
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dhealth.c44 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in cmd_fault_get()
78 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in fault_clear()
130 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in fault_test()
183 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in cmd_period_get()
205 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in period_set()
255 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in cmd_attention_get()
277 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in attention_set()
Dshell.c1006 bt_mesh_shell_target_ctx.app_idx, in cmd_net_send()
1297 shell_error(sh, "Unable to export app key 0x%03x", key->app_idx); in cdb_print_app_keys()
1303 shell_print(sh, "0x%03x 0x%03x %s", key->net_idx, key->app_idx, key_hex_str); in cdb_print_app_keys()
1478 uint16_t net_idx, app_idx; in cmd_cdb_app_key_add() local
1484 app_idx = shell_strtoul(argv[2], 0, &err); in cmd_cdb_app_key_add()
1498 key = bt_mesh_cdb_app_key_alloc(net_idx, app_idx); in cmd_cdb_app_key_add()
1505 shell_error(sh, "Unable to import app key 0x%03x", app_idx); in cmd_cdb_app_key_add()
1513 shell_print(sh, "Added AppKey 0x%03x", app_idx); in cmd_cdb_app_key_add()
1522 uint16_t app_idx; in cmd_cdb_app_key_del() local
1525 app_idx = shell_strtoul(argv[1], 0, &err); in cmd_cdb_app_key_del()
[all …]
Ddfu.c582 .app_idx = bt_mesh_shell_target_ctx.app_idx, in cmd_dfu_target_state()
638 .app_idx = bt_mesh_shell_target_ctx.app_idx, in cmd_dfu_target_imgs()
674 .app_idx = bt_mesh_shell_target_ctx.app_idx, in cmd_dfu_target_check()
765 dfu_tx.inputs.app_idx = bt_mesh_shell_target_ctx.app_idx; in cmd_dfu_send()
783 .app_idx = bt_mesh_shell_target_ctx.app_idx, in cmd_dfu_tx_cancel()
Dop_agg.c29 bt_mesh_shell_target_ctx.app_idx, in cmd_seq_start()
Dsol_pdu_rpl.c20 struct bt_mesh_msg_ctx ctx = BT_MESH_MSG_CTX_INIT_APP(bt_mesh_shell_target_ctx.app_idx, in cmd_srpl_clear()
/Zephyr-latest/tests/bluetooth/tester/src/btp/
Dbtp_mesh.h274 uint16_t app_idx; member
636 uint16_t app_idx; member
663 uint16_t app_idx; member
670 uint16_t app_idx; member
681 uint16_t app_idx; member
695 uint16_t app_idx; member
701 uint16_t app_idx; member
712 uint16_t app_idx; member
718 uint16_t app_idx; member
842 uint16_t app_idx; member

123