BLuetooth Gatt Callback not working with new API for Lollipop

前端 未结 2 717
太阳男子
太阳男子 2021-02-19 15:23

I currently have a method which writes to the BLE devices to beep it. My Bluetooth Callback goes as follows :

ReadCharacteristic rc = new ReadCharacteristic(con         


        
2条回答
  •  无人共我
    2021-02-19 15:27

    Thanks for pointing the problem Shashank.

    I have looked at the Google example and followed what they recommend, it works like a charm with my device.

    You should call the close() function in your onUnbind and the disconnect() when you need to, for example when you quit your application.

提交回复
热议问题