esp_ble_mesh_provisioner_add_local_app_key() function
This function is called to add a local AppKey for Provisioner.
Arguments
app_key
The app key to be set for the local BLE Mesh stack.
net_idx
The network key index.
app_idx
The app key index.
Return value
ESP_OK on success or error code otherwise.
Notes
app_key: If set to NULL, app_key will be generated internally. net_idx: Should be an existing one. app_idx: If it is going to be generated internally, it should be set to 0xFFFF, and the new app_idx will be reported via an event.
![]()
esp_err_t esp_ble_mesh_provisioner_add_local_app_key(const uint8_t app_key[16],
esp_ble_mesh_provisioner_add_local_app_key() calls 2 functions:
![]()
esp_ble_mesh_provisioner_add_local_app_key()
esp_ble_mesh_provisioner_add_local_app_key() reads 7 variables and writes 5 variables:
![]()
esp_ble_mesh_provisioner_add_local_app_key()