Sl_bt_peer_security#

Functions#

sl_status_t
void

Function Documentation#

sl_bt_peer_security_send_confirmation#

sl_status_t sl_bt_peer_security_send_confirmation (bool confirm)
Parameters
TypeDirectionArgument NameDescription
bool[in]confirm

true to confirm, false to reject.

Set the passkey confirmation decision and send it to the stack.

Should be called after receiving a passkey confirmation request (SL_BT_PEER_SECURITY_CONFIRM_IN_PROGRESS state).

Note

  • Must not be called from interrupt context.

Returns

  • SL_STATUS_OK on success, or an error code on failure.


sl_bt_peer_security_on_event#

void sl_bt_peer_security_on_event (uint8_t handle)
Parameters
TypeDirectionArgument NameDescription
uint8_t[in]handle

The connection handle.

Connection callback for Peer Security. This callback is called when a passkey confirmation request is received.

Note

  • To be implemented in user code.


Macro Definition Documentation#

SL_BT_PEER_SECURITY_LOG#

#define SL_BT_PEER_SECURITY_LOG
Value:
0

SL_BT_PEER_SECURITY_LOG_PREFIX#

#define SL_BT_PEER_SECURITY_LOG_PREFIX
Value:
"[SEC]"

SL_BT_PEER_SECURITY_IO_CAPABILITY#

#define SL_BT_PEER_SECURITY_IO_CAPABILITY
Value:
sl_bt_sm_io_capability_noinputnooutput

SL_BT_PEER_SECURITY_BONDING_ENABLED#

#define SL_BT_PEER_SECURITY_BONDING_ENABLED
Value:
1

SL_BT_PEER_SECURITY_MAX_BONDINGS#

#define SL_BT_PEER_SECURITY_MAX_BONDINGS
Value:
8

SL_BT_PEER_SECURITY_MITM_REQUIRED#

#define SL_BT_PEER_SECURITY_MITM_REQUIRED
Value:
0

SL_BT_PEER_SECURITY_BONDED_DEVICES_ONLY#

#define SL_BT_PEER_SECURITY_BONDED_DEVICES_ONLY
Value:
0

SL_BT_PEER_SECURITY_REJECT_DEBUG_KEYS#

#define SL_BT_PEER_SECURITY_REJECT_DEBUG_KEYS
Value:
1

SL_BT_PEER_SECURITY_REQUEST_DEBUG_KEYS#

#define SL_BT_PEER_SECURITY_REQUEST_DEBUG_KEYS
Value:
0

SL_BT_PEER_SECURITY_DELETE_BONDINGS_ON_INIT#

#define SL_BT_PEER_SECURITY_DELETE_BONDINGS_ON_INIT
Value:
0

SL_BT_PEER_SECURITY_DEFAULT_PASSKEY#

#define SL_BT_PEER_SECURITY_DEFAULT_PASSKEY
Value:
1234

SL_BT_PEER_SECURITY_AUTO_ALLOW_CONFIRMATION#

#define SL_BT_PEER_SECURITY_AUTO_ALLOW_CONFIRMATION
Value:
1