Deepak
Deepak

Reputation: 1676

Device is getting disconnected from GATT server

Android BLE Issue

Once my Device received data from GATT server, After one time received data its getting disconnected. or unable to receive notifications. I tried number of different ways but nothing works. I have read the whole url also.. Android 4.3 Bluetooth Low Energy unstable

Upvotes: 3

Views: 5016

Answers (1)

Deepak
Deepak

Reputation: 1676

This problem is solved after a lot of efforts . I was problem that after one time reading characteristic application getting disconnecting from the GATT server. Now i put the solution : In BLE service class onCharacteristicsRead method i set

setCharacteristicNotification( BluetoothGattCharacteristic characteristic, boolean enabled)

to true. and this works fine for me..

Upvotes: 5

Related Questions