Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1
109
Ver.1.0.0
A callback function is supplied in SDK for the APP layer to check whether the indicate
data has already been confirmed by Master. The registered callback function will be
executed once when a Handle Value Confirmation is received.
Definition of type of the callback function is:
typede fint
(*
att_handleValueConfirm_callback_t
)(
void
);
The API below serves to register the callback function:
void
bls_att_registerHandleValueConfirmCb
(
att_handleValueConfirm_callback_t
cb);
3.5 SMP
Security Manager (SM) in BLE is mainly used to provide various encryption keys for LE
device to ensure data security. Encrypted link can protect the original contents of data in
the air from being intercepted, decoded or read by any attacker. Please refer to
Core_v5.0
(Vol 3/Part H/ Security Manager Specification) for details of SMP.
3.5.1 SMP Parameter Configuration
Parameter configuration related to SMP initialization includes device bonding, OOB (Out-
Of-Band) data verification and Secure Connection (SC).
3.5.1.1 Device Bonding
When it’s needed to bond peer device information after pairing, the function below should
be called to enable current device bonding request.
int blc_smp_enableBonding (int en);
en = 0, disable current device bonding;
en = 1 (default), enable current device bonding.
3.5.1.2 Device OOB data verification
The function below is used for OOB data verification:
void blc_smp_enableOobFlag (int en, u8 *oobData);
en: enable or disable OOB data verification;
en = 0, disable (default) OOB data verification;
en = 1, enable OOB data verification;
oobData: OOB data verification value, pointer to a group of 16-byte data.
3.5.1.3 Secure Connection Pairing (SC)
Secure Connection Pairing method is available from BLE 4.2. To distinguish it from
former pairings, the old ones are called Legacy Pairing. Compared with Legacy Pairing,
SC Pairing method is more secure.