Sl_bt_peer_security#
Functions#
sl_status_t
sl_bt_peer_security_send_confirmation(bool confirm)
void
sl_bt_peer_security_on_event(uint8_t handle)
Macros#
#define
SL_BT_PEER_SECURITY_LOG 0
#define
SL_BT_PEER_SECURITY_LOG_PREFIX "[SEC]"
#define
SL_BT_PEER_SECURITY_IO_CAPABILITY sl_bt_sm_io_capability_noinputnooutput
#define
SL_BT_PEER_SECURITY_BONDING_ENABLED 1
#define
SL_BT_PEER_SECURITY_MAX_BONDINGS 8
#define
SL_BT_PEER_SECURITY_MITM_REQUIRED 0
#define
SL_BT_PEER_SECURITY_BONDED_DEVICES_ONLY 0
#define
SL_BT_PEER_SECURITY_REJECT_DEBUG_KEYS 1
#define
SL_BT_PEER_SECURITY_DELETE_BONDINGS_ON_INIT 0
#define
SL_BT_PEER_SECURITY_DEFAULT_PASSKEY 1234
#define
SL_BT_PEER_SECURITY_AUTO_ALLOW_CONFIRMATION 1
Function Documentation#
sl_bt_peer_security_send_confirmation#
sl_status_t sl_bt_peer_security_send_confirmation (bool confirm)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| 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
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| 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.