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.

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



hi all:

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

  • 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.