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

◆ bt_mesh_le_pair_resp_passkey_get()

uint32_t bt_mesh_le_pair_resp_passkey_get ( void )

#include <include/bluetooth/mesh/vnd/le_pair_resp.h>

Get passkey to be used in the very next pairing.

This function will return the passkey set by the bt_mesh_le_pair_resp_passkey_set function or it will return a randomly generated passkey by the reset message.

If the passkey has never been set or the Reset message has never been received, BT_PASSKEY_RAND will be returned.

Returns
Passkey to be used in the very next pairing; BT_PASSKEY_RAND if passkey is not set.