M
配置初始化的参数
gap_security_param_t smp_param = {
.mitm = true,
.secure_connection = false,
.bond = true,
.rsp_mode = ENABLE_AUTO_RSP,
.oob_used = GAP_OOB_AUTH_DATA_NOT_PRESENT,
.io_cap = GAP_IO_CAP_KB_ONLY, // OR GAP_IO_CAP_KB_ONLY
};
gap_security_param_init(&smp_param);
第一在GAP_EVT_SMP_SEC_REQ中加入绑定
!
第二、加入在GAP_EVT_SMP_TK_REQ加入填写密钥