Android: BLE how to read multiple Characteristics?

Pseudocode:

  1. Use a FIFO Queue or Priority Queue depends upon your business logic

  2. insert all the characteristics you want to read

  3. call your requestCharacteristics method so that it can start consuming your Queue

  4. from your onCharacteristicsRead call see if the size of the queue is greater than Zero requests one more.. be sure to peek() from here

  5. now on your requestCharacteristics method do the poll() and request BLE GATT for characteristics.

Leave a Comment