Android Question BLE2 Which end is disconnecting

Steve-h

Member
I am successfully connecting with a remote device and reading the available services and characteristics. If I start either reading or writing data the link always Disconnects after roughly 38seconds, the number of reads or writes or the interval between them seems to have no effect on the time before disconnecting. Whilst it is connected data is correctly transferred in both directions. If I connect but refrain from read or write it stays connected for more than several hours. Is there any way I can determine which end is causing the Disconnect ? The logging just shows disconnected, a disconnected event is raised but that doesn't tell me which end or what caused it.
 
Top