Home
last modified time | relevance | path

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

12

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dlocal_operation.c143 const uint8_t *bt_mesh_node_get_local_app_key(uint16_t app_idx) in bt_mesh_node_get_local_app_key() argument
147 if (app_idx > 0xFFF) { in bt_mesh_node_get_local_app_key()
148 BT_ERR("Invalid AppKeyIndex 0x%04x", app_idx); in bt_mesh_node_get_local_app_key()
152 key = bt_mesh_app_key_find(app_idx); in bt_mesh_node_get_local_app_key()
154 BT_ERR("AppKey 0x%04x not exists", app_idx); in bt_mesh_node_get_local_app_key()
233 int bt_mesh_node_local_app_key_add(uint16_t net_idx, uint16_t app_idx, in bt_mesh_node_local_app_key_add() argument
238 if (net_idx > 0xFFF || app_idx > 0xFFF || app_key == NULL) { in bt_mesh_node_local_app_key_add()
253 key = bt_mesh_app_key_find(app_idx); in bt_mesh_node_local_app_key_add()
255 BT_WARN("AppKey 0x%04x already exists", app_idx); in bt_mesh_node_local_app_key_add()
271 key = bt_mesh_app_key_alloc(app_idx); in bt_mesh_node_local_app_key_add()
[all …]
Dprovisioner_main.c799 struct bt_mesh_app_key *bt_mesh_provisioner_app_key_find(uint16_t app_idx) in bt_mesh_provisioner_app_key_find() argument
809 key->app_idx == app_idx) { in bt_mesh_provisioner_app_key_find()
817 static int provisioner_check_app_key(const uint8_t app_key[16], uint16_t *app_idx) in provisioner_check_app_key() argument
831 *app_idx = key->app_idx; in provisioner_check_app_key()
839 static int provisioner_check_app_idx(uint16_t app_idx, bool exist) in provisioner_check_app_idx() argument
848 if (key && (key->app_idx == app_idx)) { in provisioner_check_app_idx()
858 if (key && (key->app_idx == app_idx)) { in provisioner_check_app_idx()
942 uint16_t net_idx, uint16_t *app_idx) in bt_mesh_provisioner_local_app_key_add() argument
954 if (!app_idx || (*app_idx != 0xFFFF && *app_idx >= 0x1000)) { in bt_mesh_provisioner_local_app_key_add()
960 if (provisioner_check_app_key(app_key, app_idx)) { in bt_mesh_provisioner_local_app_key_add()
[all …]
Dfast_prov.c61 struct bt_mesh_app_key *bt_mesh_fast_prov_app_key_find(uint16_t app_idx) in bt_mesh_fast_prov_app_key_find() argument
69 key->app_idx == app_idx) { in bt_mesh_fast_prov_app_key_find()
77 key->app_idx == app_idx) { in bt_mesh_fast_prov_app_key_find()
130 const uint8_t *bt_mesh_get_fast_prov_app_key(uint16_t net_idx, uint16_t app_idx) in bt_mesh_get_fast_prov_app_key() argument
134 key = bt_mesh_fast_prov_app_key_find(app_idx); in bt_mesh_get_fast_prov_app_key()
136 BT_ERR("Invalid AppKeyIndex 0x%04x", app_idx); in bt_mesh_get_fast_prov_app_key()
Dcfg_cli.c237 bt_mesh_free_buf(val->app_idx); in cfg_client_recv_status()
243 bt_mesh_free_buf(val->app_idx); in cfg_client_recv_status()
258 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in comp_data_status()
280 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in state_status_u8()
323 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in relay_status()
339 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in net_key_status()
355 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in app_key_status()
359 key_idx_unpack(buf, &status.net_idx, &status.app_idx); in app_key_status()
371 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in mod_app_status()
376 status.app_idx = net_buf_simple_pull_le16(buf); in mod_app_status()
[all …]
Dprovisioner_main.h98 struct bt_mesh_app_key *bt_mesh_provisioner_app_key_find(uint16_t app_idx);
101 uint16_t net_idx, uint16_t *app_idx);
104 uint16_t net_idx, uint16_t app_idx);
106 const uint8_t *bt_mesh_provisioner_local_app_key_get(uint16_t net_idx, uint16_t app_idx);
108 int bt_mesh_provisioner_local_app_key_del(uint16_t net_idx, uint16_t app_idx, bool store);
120 uint16_t cid, uint16_t app_idx);
Dlocal_operation.h27 const uint8_t *bt_mesh_node_get_local_app_key(uint16_t app_idx);
31 int bt_mesh_node_local_app_key_add(uint16_t net_idx, uint16_t app_idx,
35 uint16_t cid, uint16_t app_idx);
Dtest.c70 BT_ERR("Failed to allocate AppKey, 0x%04x", info->app_idx); in bt_mesh_device_auto_enter_network()
77 BT_ERR("Failed to calculate AID, 0x%04x", info->app_idx); in bt_mesh_device_auto_enter_network()
82 key->app_idx = info->app_idx; in bt_mesh_device_auto_enter_network()
102 model->keys[k] = info->app_idx; in bt_mesh_device_auto_enter_network()
117 model->keys[k] = info->app_idx; in bt_mesh_device_auto_enter_network()
Dsettings.c503 uint16_t app_idx = net_buf_simple_pull_le16(buf); in app_key_set() local
504 sprintf(get, "mesh/ak/%04x", app_idx); in app_key_set()
508 BT_ERR("Failed to load AppKey 0x%03x", app_idx); in app_key_set()
522 app = bt_mesh_app_key_find(app_idx); in app_key_set()
524 app = bt_mesh_app_key_alloc(app_idx); in app_key_set()
526 BT_ERR("No space for a new appkey 0x%03x", app_idx); in app_key_set()
533 app->app_idx = app_idx; in app_key_set()
541 app->app_idx, app->net_idx); in app_key_set()
890 uint16_t app_idx = 0U; in p_app_idx_set() local
896 err = bt_mesh_load_core_settings(name, (uint8_t *)&app_idx, sizeof(app_idx), &exist); in p_app_idx_set()
[all …]
Dfast_prov.h20 struct bt_mesh_app_key *bt_mesh_fast_prov_app_key_find(uint16_t app_idx);
28 const uint8_t *bt_mesh_get_fast_prov_app_key(uint16_t net_idx, uint16_t app_idx);
Dcfg_srv.c124 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in dev_comp_data_get()
184 static bool app_key_is_valid(uint16_t app_idx) in app_key_is_valid() argument
192 key->app_idx == app_idx) { in app_key_is_valid()
201 uint16_t app_idx) in mod_pub_app_key_bound() argument
206 if (model->keys[i] == app_idx) { in mod_pub_app_key_bound()
211 BT_ERR("Appkey(0x%02x) not bound to this model.", app_idx); in mod_pub_app_key_bound()
216 uint16_t app_idx, uint8_t cred_flag, uint8_t ttl, uint8_t period, in _mod_pub_set() argument
258 if (!bt_mesh_app_key_find(app_idx) || in _mod_pub_set()
259 !mod_pub_app_key_bound(model, app_idx)) { in _mod_pub_set()
264 model->pub->key = app_idx; in _mod_pub_set()
[all …]
Daccess.c206 ctx.app_idx = key->app_idx; in publish_retransmit()
647 BT_INFO("recv, app_idx 0x%04x src 0x%04x dst 0x%04x", rx->ctx.app_idx, in bt_mesh_model_recv()
680 if (!model_has_key(model, rx->ctx.app_idx)) { in bt_mesh_model_recv()
771 tx->ctx->app_idx, tx->src, tx->ctx->addr); in model_send()
789 if (!implicit_bind && !model_has_key(model, tx->ctx->app_idx)) { in model_send()
790 BT_ERR("Model not bound to AppKey 0x%04x", tx->ctx->app_idx); in model_send()
878 ctx.app_idx = key->app_idx; in bt_mesh_model_publish()
975 struct bt_mesh_app_key *bt_mesh_tx_appkey_get(uint8_t role, uint16_t app_idx) in bt_mesh_tx_appkey_get() argument
980 key = bt_mesh_app_key_find(app_idx); in bt_mesh_tx_appkey_get()
982 key = bt_mesh_provisioner_app_key_find(app_idx); in bt_mesh_tx_appkey_get()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_local_data_operation_api.c132 const uint8_t *esp_ble_mesh_node_get_local_app_key(uint16_t app_idx) in esp_ble_mesh_node_get_local_app_key() argument
134 return btc_ble_mesh_node_get_local_app_key(app_idx); in esp_ble_mesh_node_get_local_app_key()
159 … esp_ble_mesh_node_add_local_app_key(const uint8_t app_key[16], uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_node_add_local_app_key() argument
164 if (app_key == NULL || net_idx > 0xFFF || app_idx > 0xFFF) { in esp_ble_mesh_node_add_local_app_key()
175 arg.node_add_local_app_key.app_idx = app_idx; in esp_ble_mesh_node_add_local_app_key()
183 uint16_t model_id, uint16_t app_idx) in esp_ble_mesh_node_bind_app_key_to_local_model() argument
188 if (!ESP_BLE_MESH_ADDR_IS_UNICAST(element_addr) || app_idx > 0xFFF) { in esp_ble_mesh_node_bind_app_key_to_local_model()
201 arg.node_local_mod_app_bind.app_idx = app_idx; in esp_ble_mesh_node_bind_app_key_to_local_model()
Desp_ble_mesh_networking_api.c179 ctx->app_idx == ESP_BLE_MESH_KEY_UNUSED) { in esp_ble_mesh_server_model_send_msg()
196 ctx->app_idx == ESP_BLE_MESH_KEY_UNUSED) { in esp_ble_mesh_client_model_send_msg()
399 uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_provisioner_add_local_app_key() argument
411 arg.add_local_app_key.app_idx = app_idx; in esp_ble_mesh_provisioner_add_local_app_key()
422 uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_provisioner_update_local_app_key() argument
439 arg.update_local_app_key.app_idx = app_idx; in esp_ble_mesh_provisioner_update_local_app_key()
444 const uint8_t *esp_ble_mesh_provisioner_get_local_app_key(uint16_t net_idx, uint16_t app_idx) in esp_ble_mesh_provisioner_get_local_app_key() argument
446 return bt_mesh_provisioner_local_app_key_get(net_idx, app_idx); in esp_ble_mesh_provisioner_get_local_app_key()
449 …err_t esp_ble_mesh_provisioner_bind_app_key_to_local_model(uint16_t element_addr, uint16_t app_idx, in esp_ble_mesh_provisioner_bind_app_key_to_local_model() argument
466 arg.local_mod_app_bind.app_idx = app_idx; in esp_ble_mesh_provisioner_bind_app_key_to_local_model()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_config_model.c192 if (p_src_data->status_cb.appkey_list.app_idx) { in btc_ble_mesh_config_client_copy_req_data()
193 length = p_src_data->status_cb.appkey_list.app_idx->len; in btc_ble_mesh_config_client_copy_req_data()
194 p_dest_data->status_cb.appkey_list.app_idx = bt_mesh_alloc_buf(length); in btc_ble_mesh_config_client_copy_req_data()
195 if (!p_dest_data->status_cb.appkey_list.app_idx) { in btc_ble_mesh_config_client_copy_req_data()
199 net_buf_simple_add_mem(p_dest_data->status_cb.appkey_list.app_idx, in btc_ble_mesh_config_client_copy_req_data()
200 p_src_data->status_cb.appkey_list.app_idx->data, in btc_ble_mesh_config_client_copy_req_data()
201 p_src_data->status_cb.appkey_list.app_idx->len); in btc_ble_mesh_config_client_copy_req_data()
208 if (p_src_data->status_cb.model_app_list.app_idx) { in btc_ble_mesh_config_client_copy_req_data()
209 length = p_src_data->status_cb.model_app_list.app_idx->len; in btc_ble_mesh_config_client_copy_req_data()
210 p_dest_data->status_cb.model_app_list.app_idx = bt_mesh_alloc_buf(length); in btc_ble_mesh_config_client_copy_req_data()
[all …]
Dbtc_ble_mesh_time_scene_model.c256 params.ctx.app_idx = ctx->app_idx; in bt_mesh_time_scene_client_cb_evt_to_btc()
309 common.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_time_scene_client_call_handler()
329 common.ctx.app_idx = params->ctx.app_idx; in btc_ble_mesh_time_scene_client_call_handler()
439 cb_params.ctx.app_idx = ctx->app_idx; in bt_mesh_time_scene_server_cb_evt_to_btc()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/include/
Dcfg_srv.h89 uint16_t app_idx; member
100 uint16_t app_idx; member
162 uint16_t app_idx; member
167 uint16_t app_idx; member
172 uint16_t app_idx; member
180 uint16_t app_idx; member
186 uint16_t app_idx; member
Dcfg_cli.h65 uint16_t net_idx, uint16_t app_idx,
69 uint16_t elem_addr, uint16_t app_idx,
74 uint16_t app_idx; member
159 uint16_t app_idx; member
165 uint16_t app_idx; member
174 uint16_t app_idx; member
226 struct net_buf_simple *app_idx; member
240 struct net_buf_simple *app_idx; member
276 uint16_t net_idx, uint16_t app_idx,
280 uint16_t net_idx, uint16_t app_idx);
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/api/models/include/
Desp_ble_mesh_config_model_api.h176 uint16_t app_idx; /*!< The app key index */ member
283 uint16_t app_idx; /*!< The app key index */ member
290 uint16_t app_idx; /*!< The app key index */ member
443 uint16_t app_idx; /*!< Index of the application key */ member
471 uint16_t app_idx; /*!< Index of the application key */ member
478 uint16_t app_idx; /*!< Index of the application key */ member
534 …struct net_buf_simple *app_idx; /*!< A list of AppKey indexes that are bound to the NetKey ide… member
550 struct net_buf_simple *app_idx; /*!< All AppKey indexes bound to the Model */ member
616 uint16_t app_idx; /*!< AppKey Index */ member
661 uint16_t app_idx; /*!< AppKey Index */ member
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/api/core/include/
Desp_ble_mesh_networking_api.h329 uint16_t net_idx, uint16_t app_idx);
342 uint16_t net_idx, uint16_t app_idx);
353 const uint8_t *esp_ble_mesh_provisioner_get_local_app_key(uint16_t net_idx, uint16_t app_idx);
369 …err_t esp_ble_mesh_provisioner_bind_app_key_to_local_model(uint16_t element_addr, uint16_t app_idx,
642 const uint8_t *esp_ble_mesh_get_fast_prov_app_key(uint16_t net_idx, uint16_t app_idx);
Desp_ble_mesh_local_data_operation_api.h155 const uint8_t *esp_ble_mesh_node_get_local_app_key(uint16_t app_idx);
183 …esp_ble_mesh_node_add_local_app_key(const uint8_t app_key[16], uint16_t net_idx, uint16_t app_idx);
201 uint16_t model_id, uint16_t app_idx);
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/include/
Dbtc_ble_mesh_prov.h123 uint16_t app_idx; member
129 uint16_t app_idx; member
188 uint16_t app_idx; member
193 uint16_t app_idx; member
199 uint16_t app_idx; member
348 const uint8_t *btc_ble_mesh_node_get_local_app_key(uint16_t app_idx);
/hal_espressif-latest/components/bt/esp_ble_mesh/api/models/
Desp_ble_mesh_lighting_model_api.c30 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_light_client_get_state()
56 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_light_client_set_state()
Desp_ble_mesh_sensor_model_api.c30 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_sensor_client_get_state()
55 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_sensor_client_set_state()
Desp_ble_mesh_time_scene_model_api.c30 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_time_scene_client_get_state()
56 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_time_scene_client_set_state()
Desp_ble_mesh_generic_model_api.c43 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_generic_client_get_state()
69 params->ctx.app_idx == ESP_BLE_MESH_KEY_UNUSED || in esp_ble_mesh_generic_client_set_state()

12