3

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

Community
  • 1
  • 1
Deepak
  • 1,669
  • 1
  • 18
  • 28

1 Answers1

5

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..

Deepak
  • 1,669
  • 1
  • 18
  • 28
  • 1
    I already have passed this, but still sometime i am getting disconnected. Can you please suggest me some workarounds? – Lalit Jadav Jan 12 '17 at 11:40
  • 1
    Sometimes mean @JadavLalit can you give me some logs. or particular case or error number ... – Deepak Jan 16 '17 at 07:17
  • 1
    it give me connected state 0 and status 133 everytime, but some times it connects regularly – Lalit Jadav Jan 16 '17 at 08:21
  • 1
    gatt server 133 may cause number of cases. You can paste bit snippet of code here to help and understand your issue. in case you can connect me via skype: deepak.kumar3038 – Deepak Jan 16 '17 at 10:07