/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | health_cli.c | 51 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_fault_status() 101 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_current_status() 129 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_period_status() 160 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in health_attention_status() 234 .app_idx = app_idx, in bt_mesh_health_attention_get() 266 .app_idx = app_idx, in bt_mesh_health_attention_set() 313 .app_idx = app_idx, in bt_mesh_health_period_get() 350 .app_idx = app_idx, in bt_mesh_health_period_set() 398 .app_idx = app_idx, in bt_mesh_health_fault_test() 451 .app_idx = app_idx, in bt_mesh_health_fault_clear() [all …]
|
A D | provisioner_main.c | 453 if (key->net_idx != BT_MESH_KEY_UNUSED && key->app_idx == app_idx) { in provisioner_app_key_find() 727 *app_idx = key->app_idx; in provisioner_check_app_key() 745 if (key->appkey_active && (key->app_idx == app_idx)) { in provisioner_check_app_idx() 757 if (key->appkey_active && (key->app_idx == app_idx)) { in provisioner_check_app_idx() 871 if (!app_idx || (*app_idx != 0xFFFF && *app_idx >= 0x1000)) { in bt_mesh_provisioner_local_app_key_add() 924 key->app_idx = *app_idx; in bt_mesh_provisioner_local_app_key_add() 943 *app_idx = key->app_idx; in bt_mesh_provisioner_local_app_key_add() 977 if (key->appkey_active && key->net_idx == net_idx && key->app_idx == app_idx) { in bt_mesh_provisioner_local_app_key_get() 1321 if (!key->appkey_active || (key->app_idx != app_idx)) { in bt_mesh_provisioner_bind_local_app_net_idx() 1476 if (key->app_idx == *app_idx) { in bt_mesh_temp_prov_app_idx_set() [all …]
|
A D | cfg_cli.c | 304 u16_t app_idx; member 310 u16_t net_idx, app_idx; in app_key_status() local 335 if (param && (param->net_idx != net_idx || param->app_idx != app_idx)) { in app_key_status() 894 .app_idx = BT_MESH_KEY_DEV, in bt_mesh_cfg_comp_data_get() 930 .app_idx = BT_MESH_KEY_DEV, in get_state_u8() 961 .app_idx = BT_MESH_KEY_DEV, in set_state_u8() 1052 .app_idx = BT_MESH_KEY_DEV, in bt_mesh_cfg_relay_get() 1095 .app_idx = BT_MESH_KEY_DEV, in bt_mesh_cfg_relay_set() 1132 .app_idx = BT_MESH_KEY_DEV, in bt_mesh_cfg_net_key_add() 1296 .app_idx = key_app_idx, in bt_mesh_cfg_app_key_add() [all …]
|
A D | settings.c | 393 u16_t app_idx; in app_key_set() local 401 app_idx = strtol(name, NULL, 16); in app_key_set() 407 app = bt_mesh_app_key_find(app_idx); in app_key_set() 421 app = bt_mesh_app_key_find(app_idx); in app_key_set() 432 app->app_idx = app_idx; in app_key_set() 507 u16_t app_idx; in papp_key_set() local 510 app_idx = strtol(name, NULL, 16); in papp_key_set() 542 app->app_idx = app_idx; in papp_key_set() 1267 BT_DBG("AppKeyIndex 0x%03x", app_idx); in clear_app_key() 1751 free_slot->key_idx = key->app_idx; in bt_mesh_store_app_key() [all …]
|
A D | access.c | 192 ctx.app_idx = key->app_idx; in publish_retransmit() 480 …bt_mesh_model_op *find_op(struct bt_mesh_model *models, u8_t model_count, u16_t dst, u16_t app_idx, in find_op() argument 496 if (!model_has_key(*model, app_idx)) { in find_op() 578 BT_DBG("app_idx 0x%04x src 0x%04x dst 0x%04x", rx->ctx.app_idx, rx->ctx.addr, rx->ctx.recv_dst); in bt_mesh_model_recv() 623 op = find_op(models, count, rx->ctx.recv_dst, rx->ctx.app_idx, opcode, &model); in bt_mesh_model_recv() 677 …BT_DBG("net_idx 0x%04x app_idx 0x%04x dst 0x%04x", tx->ctx->net_idx, tx->ctx->app_idx, tx->ctx->ad… in model_send() 695 if (!implicit_bind && !model_has_key(model, tx->ctx->app_idx)) { in model_send() 696 BT_ERR("Model not bound to AppKey 0x%04x", tx->ctx->app_idx); in model_send() 783 ctx.app_idx = key->app_idx; in bt_mesh_model_publish()
|
A D | cfg_srv.c | 92 .app_idx = BT_MESH_KEY_UNUSED, in hb_send() 259 static bool app_key_is_valid(u16_t app_idx) in app_key_is_valid() argument 266 if (key->net_idx != BT_MESH_KEY_UNUSED && key->app_idx == app_idx) { in app_key_is_valid() 313 if (!bt_mesh_app_key_find(app_idx)) { in _mod_pub_set() 318 model->pub->key = app_idx; in _mod_pub_set() 438 key = bt_mesh_app_key_find(app_idx); in app_key_set() 500 key->app_idx = app_idx; in app_key_set() 617 u16_t app_idx; member 630 struct unbind_data data = { .app_idx = key->app_idx, .store = store }; in bt_mesh_app_key_del() 737 prev = key->app_idx; in app_key_get() [all …]
|
A D | transport.c | 146 if (tx->ctx->app_idx == BT_MESH_KEY_DEV) { in send_unseg() 326 net_tx->ctx->app_idx, net_tx->aszmic, sdu->len); in send_seg() 350 if (net_tx->ctx->app_idx == BT_MESH_KEY_DEV) { in send_seg() 438 struct bt_mesh_app_key *bt_mesh_app_key_find(u16_t app_idx) in bt_mesh_app_key_find() argument 445 if (key->net_idx != BT_MESH_KEY_UNUSED && key->app_idx == app_idx) { in bt_mesh_app_key_find() 476 if (tx->ctx->app_idx == BT_MESH_KEY_DEV) { in bt_mesh_trans_send() 496 app_key = bt_mesh_app_key_find(tx->ctx->app_idx); in bt_mesh_trans_send() 682 rx->ctx.app_idx = BT_MESH_KEY_DEV; in sdu_recv() 716 BT_WARN("Unable to decrypt with AppKey 0x%03x", key->app_idx); in sdu_recv() 720 rx->ctx.app_idx = key->app_idx; in sdu_recv() [all …]
|
A D | lpn.c | 184 .app_idx = BT_MESH_KEY_UNUSED, in send_friend_clear() 295 .app_idx = BT_MESH_KEY_UNUSED, in send_friend_req() 361 .app_idx = BT_MESH_KEY_UNUSED, in send_friend_poll() 643 .app_idx = BT_MESH_KEY_UNUSED, in sub_update()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/api/mesh/ |
A D | health_cli.h | 49 int bt_mesh_health_fault_get(u16_t net_idx, u16_t addr, u16_t app_idx, 53 int bt_mesh_health_fault_clear(u16_t net_idx, u16_t addr, u16_t app_idx, 57 int bt_mesh_health_fault_test(u16_t net_idx, u16_t addr, u16_t app_idx, 61 int bt_mesh_health_period_get(u16_t net_idx, u16_t addr, u16_t app_idx, 64 int bt_mesh_health_period_set(u16_t net_idx, u16_t addr, u16_t app_idx, 67 int bt_mesh_health_attention_get(u16_t net_idx, u16_t addr, u16_t app_idx, 70 int bt_mesh_health_attention_set(u16_t net_idx, u16_t addr, u16_t app_idx,
|
A D | access.h | 135 u16_t app_idx; member
|
A D | cfg_cli.h | 126 u16_t app_idx; member
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | provisioner_main.h | 66 struct bt_mesh_app_key *provisioner_app_key_find(u16_t app_idx); 88 int bt_mesh_provisioner_local_app_key_add(const u8_t app_key[16], u16_t net_idx, u16_t *app_idx); 90 const u8_t *bt_mesh_provisioner_local_app_key_get(u16_t net_idx, u16_t app_idx); 92 int bt_mesh_provisioner_local_app_key_delete(u16_t net_idx, u16_t app_idx); 104 u16_t cid, u16_t app_idx); 108 u16_t cid, u16_t app_idx); 112 int bt_mesh_provisioner_bind_local_app_net_idx(u16_t net_idx, u16_t app_idx); 124 int bt_mesh_temp_prov_app_idx_set(const u8_t app_key[16], u16_t net_idx, u16_t *app_idx, u8_t *stat…
|
A D | ble_transport.h | 85 struct bt_mesh_app_key *bt_mesh_app_key_find(u16_t app_idx);
|
A D | foundation.h | 150 struct bt_mesh_app_key *bt_mesh_app_key_alloc(u16_t app_idx);
|
A D | net.h | 39 u16_t app_idx; member
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/sig_model/cli/ |
A D | light_lightness_cli.c | 105 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_get() 151 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_set() 188 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_linear_get() 235 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_linear_set() 271 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_last_get() 306 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_def_get() 346 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_def_set() 381 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_range_get() 422 ctx.app_idx = appkey_idx; in ble_mesh_light_lightness_range_set()
|
A D | light_ctl_cli.c | 104 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_set() 142 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_get() 189 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_temp_set() 225 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_temp_get() 266 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_def_set() 301 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_def_get() 341 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_temp_range_set() 376 ctx.app_idx = appkey_idx; in ble_mesh_light_ctl_temp_range_get()
|
A D | generic_level_cli.c | 60 ctx.app_idx = appkey_idx; in ble_mesh_generic_level_get() 105 ctx.app_idx = appkey_idx; in ble_mesh_generic_level_set() 153 ctx.app_idx = appkey_idx; in ble_mesh_generic_level_delta_set() 200 ctx.app_idx = appkey_idx; in ble_mesh_generic_level_move_set()
|
A D | generic_onoff_cli.c | 60 ctx.app_idx = appkey_idx; in ble_mesh_generic_onoff_get() 104 ctx.app_idx = appkey_idx; in ble_mesh_generic_onoff_set()
|
/AliOS-Things-master/components/ble_mesh/bt_shell/bt_mesh/ |
A D | shell.c | 65 u16_t app_idx; member 1077 printf("AppIdx: 0x%04x\n", net.app_idx); in cmd_appidx() 1081 net.app_idx = strtoul(argv[1], NULL, 0); in cmd_appidx() 1082 printf("AppIdx set to 0x%04x\n", net.app_idx); in cmd_appidx() 1094 .app_idx = net.app_idx, in cmd_net_send() 2046 ctx.app_idx = key->app_idx; in local_model_send() 2244 addr, mod_id, pub.addr, pub.app_idx, pub.cred_flag, pub.ttl, pub.period, in mod_pub_get() 2258 pub.app_idx = strtoul(argv[1], NULL, 0); in mod_pub_set() 2781 err = bt_mesh_health_period_get(net.net_idx, net.dst, net.app_idx, &divisor); in cmd_period_get() 3389 u16_t app_idx; in prov_appkey_bind() local [all …]
|
/AliOS-Things-master/components/genie_service/sal/src/ |
A D | genie_sal_ble.c | 149 ctx.app_idx = 0; in genie_sal_ble_send_msg()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/aos/ |
A D | mesh.c | 124 event_data.app_idx = ctx->app_idx; in mesh_op_cb() 533 .app_idx = app_id, in ble_stack_mesh_send()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/common/ |
A D | mesh_model.c | 326 ctx.app_idx = appkey_idx; in ble_mesh_model_status_get()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_event.c | 14 extern void genie_appkey_register(u16_t net_idx, u16_t app_idx, const u8_t val[16], bool update);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/vendor_model/ |
A D | vendor_model_cli.c | 296 ctx.app_idx = model_msg->appkey_idx; in ble_mesh_vendor_cli_model_msg_send()
|