bt_mesh_app_key_set() function
Initialize a new application key with the given parameters.
Arguments
net_idx
NetIndex the application is bound to.
old_key
Current application key.
new_key
Updated application key, or NULL if not known.
Return value
0 on success, or (negative) error code on failure.