nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ dult_near_owner_state_set()

int dult_near_owner_state_set ( const struct dult_user * user,
enum dult_near_owner_state_mode mode )

#include <include/dult.h>

Set the mode of the DULT near-owner state.

This function can only be called if the DULT user was previously registered with the dult_user_register API. By default, the DULT near-owner state is set to "near-owner" (see DULT_NEAR_OWNER_STATE_MODE_NEAR_OWNER) on boot and when the dult_reset API is called.

Parameters
userUser structure used to authenticate the user.
modeMode of the DULT near-owner state.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.