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.

Repeated pairing request in IOS with GATT_PERMIT_AUTHEN_WRITE

I am doing some application development on IOS with paring mode initiated from my device. When I enable GATT_PERMIT_AUTHEN_WRITE on one of my service characteristics, I get repeated pairing requests every time I try to connect with the device and when I accept these the request pops up again and I am unable to write to the characteristic

With the characteristic set to GATT_PERMIT_WRITE, the pairing request only pops up one and I can write to the characteristic any time as expected.

Has anyone experienced this before?

  • Hi. I have just got the same problem when I click 'Cancel' the first time for the pairing request, and the Pairing request dialog would appear again and again even I click 'Pair'. I believe the hardware does not response properly for some user input from iOS, but still dont know how to solve it :(

  • I found the problem only appears when Just-Works (no passkey) pairing is used, as this is not considered to be Authenticated pairing. If GATT_PERMIT_AUTHEN_WRITE / GATT_PERMIT_AUTHEN_WRITE are used on characteristics, and the device is paired via just works, when these characteristics are accessed by the iphone, an Insufficient Authentication response will be returned, and the iphone will try to re-pair, hence the repeated pop-up