This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android Blinky example queue characteristic read

Hi,

this is not a question about the nRF but about Android programming. Hope some of you can help me anyways. I modified the android part of the nRF Blinky example github.com/.../Android-nRF-Blinky to fit my needs. It works quite good. But if I want to read more than one characteristic on a button press, it doesn`t queue the second read. I found out, this is due to the Bluetooth specification, that there only can be one open request at a time. Then I figured out, that the author used a queue for the initialisation (in Manager initGatt). I want something like that for all of my requests. Since I am not quite familiar with android programming I was hoping someone did something similar already and can give me some hints for an easy way to use the queue for all my requests. Or even an example code.

Thanks in advance.

Related