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.

cc2540 连接不能超时



hi,all

我现在的主机扫描到从机后,我主机通过GAPCentralRole_EstablishLink去创建连接,如果从机断电了,主机就一直没有返回相应的连接超时事件回应。

请问,这是什么原因照成的,我该怎么处理啊

谢谢

  • 有没有设置SUPERV_TIMEOUT?

    Supervision Timeout: Multiple of 10ms in the range of 100ms and 32.0s. Must be larger than: (1 + slaveLatency) * (ConnInterval)

    操作接口

    GAP_SetParamValue( TGAP_CONN_EST_SUPERV_TIMEOUT, timeout ); timeout是你的时间。