This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to Respond with pairing unsupported

Again I am asking a question I should not because I cannot find it documented.

I get a pairing request from the central. I need to respond with sd_ble_gap_sec_params_reply()

There is a status parameter in the method and that I figure I can set to BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP. But what about the remaining parameters? There is nothing in the documentation which indicates how to set the other fields when I set the status to BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP. I want to set them to NULL but there may be a NULL check in there that returns an error.

Found no help in the GAP sequence diagrams either.

So how do I respond to a pairing request with BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP?

Related