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.
Examples
esp_ble_mesh_provisioner_add_local_app_key() is referenced by 6 libraries and example projects: