TI中文支持网
TI专业的中文技术问题搜集分享网站

请问hid over gatt可以在不配对的情况下使用吗

hi all:

例程hidemukbd中,使用的是配对的情况。我想把hidemukbd与simpleperipheral融合,所以希望能使用hid over gatt的不配对方式,请问可以吗?有这方面的例程嘛?或者给点提示,谢谢。

Jerry:

It is highly dependent on the Central side. Some Central may need to have security before any data transfer.

You just need to modify the following to disable security on the peripheral side.

in file hidemukbd.c, modify fhte following

from:

// Default GAP pairing mode#define DEFAULT_PAIRING_MODE                  GAPBOND_PAIRING_MODE_INITIATE

to:

// Default GAP pairing mode#define DEFAULT_PAIRING_MODE                  GAPBOND_PAIRING_MODE_NO_PAIRING

However it will not work on some central that request for security. It will terminate the connection in such case.

 

赞(0)
未经允许不得转载:TI中文支持网 » 请问hid over gatt可以在不配对的情况下使用吗
分享到: 更多 (0)