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.

CC2340R5: 請問該如何在配對完成後,不直接綁定,而是等待CC2340 按鍵按壓才進行綁定?

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

請問該如何在配對完成後,不直接綁定,而是等待CC2340 按鍵按壓才進行綁定?

需將程序加在哪邊?

手機按壓2次配對按鍵後,便直接進入到綁定完成的狀態,即使在void Pairing_pairStateHandler(uint32 event, BLEAppUtil_msgHdr_t *pMsgData)

中的 case BLEAPPUTIL_PAIRING_STATE_STARTED: 加入 while(1) 迴圈,底層也會直接綁定完成,而無法達到我需要判斷按鍵的條件。

sysconfig 設定:

    Pairing Mode : Initiate a pairing request

    IO Capabilities : No Display or Input Device

謝謝

x 出现错误。请重试或与管理员联系。