This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2642R: 请教如何通过验证密码来允许连接

Part Number: CC2642R

背景:

正在开发一个主从一体设备,需要用手机配置设备的参数。计划通过写特征值来配置参数。计划使用通用的蓝牙调试工具,如lightblue。

需求:

为了防止任何人都可以修改,希望通过密码进行验证。如:必须输入密码后才能连接,或者修改特征值前输入密码。

请问一般如何实现类似的功能?

考虑过设备主动发起配对请求,配对不成功就使用GAP_TerminateLinkReq中断连接,但实测操作不成功。

顺便请教下基础问题,配对不成功似乎也不影响建立连接、读写特征值?