esp_ble_mesh_node_bind_app_key_to_local_model() function
This function is called by Node to bind AppKey to model locally.
Arguments
element_addr
Node local element address
company_id
Node local company id
model_id
Node local model id
app_idx
Node local appkey index
Return value
ESP_OK on success or error code otherwise.
Notes
If going to bind app_key with local vendor model, the company_id shall be set to 0xFFFF. This function can only be called after the device is provisioned.
esp_ble_mesh_node_bind_app_key_to_local_model() calls 2 functions:
![]()
esp_ble_mesh_node_bind_app_key_to_local_model()
esp_ble_mesh_node_bind_app_key_to_local_model() reads 6 variables and writes 7 variables:
![]()
esp_ble_mesh_node_bind_app_key_to_local_model()