BT 配对请求默认超时?

BT Pairing Request default timeout?

如果蓝牙配对请求未被接受或取消,我必须为其设置超时!!

It's mentioned that i have to use the timeout defined by Bluetooth standard   
I am searching for that in the internet but I found nothing 
I found this [ and it's mentioned that pairing request timeout is not changeable ,

有什么帮助吗?

超时应为 30 秒,并在安全管理器规范(蓝牙核心规范,版本 5.2,第 3 卷,H 部分,第 3.4 节 SMP 超时)中定义:-

To protect the Security Manager protocol from stalling, a Security Manager Timer is used. Upon transmission of the Security Request command or reception of the Security Request command, the Security Manager Timer shall be reset and restarted. Upon transmission of the Pairing Request command or reception of the Pairing Request command, the Security Manager Timer shall be reset and started.

The Security Manager Timer shall be reset when an L2CAP SMP command is queued for transmission.

When a Pairing process completes, the Security Manager Timer shall be stopped.

If the Security Manager Timer reaches 30 seconds, the procedure shall be considered to have failed, and the local higher layer shall be notified. No further SMP commands shall be sent over the L2CAP Security Manager Channel. A new Pairing process shall only be performed when a new physical link has been established.

这通常在 stack/API 中进行硬编码,因此您可能不必在应用中设置它。