Bluetoothgattserver Is Always Disconnecting After 30 Seconds
I've been trying to figure out how to get these phones to talk to each other via Bluetooth. I have the android phone set up as a peripheral, and I have my iPhone running the nrf co
Solution 1:
Per the ble core specification, for ATT
A transaction not completed within 30 seconds shall time out.
In practice, this usually manifests as a disconnect by one side of the connection.
Some types of GATT requests require responses (i.e Indications, Read Requests, Write Requests). Doesn't look like you are implementing callbacks such as onCharacteristicReadRequest
& onCharacteristicWriteRequest
in your Gatt server implementation which could lead to this problem.
Post a Comment for "Bluetoothgattserver Is Always Disconnecting After 30 Seconds"