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 如何配置配对连接



背景:

因为我的设备中间有很多不同的从机和主机。

组A的从机不想被组B的主机连接。

所以我就想到用配对连接来做。

我把从机GAPBOND_PAIRING_MODE_INITIATE   主机:GAPBOND_PAIRING_MODE_WAIT_FOR_REQ

主从机passkey=123456;

可是得到的结果,用串口打印:

Devices Found 1
<- To Select
Pairing started
Connected
0xD03972A5F0C3
Pairing fail 7
Serial Svc Found
$123456ok
Disconnecting
Disconnected
Reason: 19