This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Android phone updates ble write characteristic three times

Hello, I want to develop applications for my Mac and for iOS + Android smartphone. First I created a simple Mac gatt server with apples CoreBluetooth API which has one service and one characteristic (which is write with response). First I wanted to test if everything works with the nRF Connect app. I tested it with an iPhone and an Android phone:

If I write the characteristic on the iPhone and deny it on the Mac server with insufficient authentication, it will return the error in the logs as expected.

If I write the characteristic on the Android phone and deny it, the phone sends the value two more times. Only after the second time I denied the authentication, the error appears in the logs of the phone.

So here is my question: Why sends the Android phone the write characteristic three times and receives the error only after third time denying. Is this the way Android BLE works, is this an issue of the nRF Android app or do I understand something incorrectly? Hope anybody can help me.

Thanks in advance.

Related