littleb icon indicating copy to clipboard operation
littleb copied to clipboard

How can I query devices discovered by lb_get_bl_devices()

Open whbruce opened this issue 8 years ago • 4 comments

This call populates an internal list of devices that are only accessible via API calls. There appears to be no way of searching through devices to determine which ones expose a specific primary service.

I propose two new API calls to address this use case lb_result_t lb_get_bl_device_count(lb_context lb_ctx, int* device_count); lb_result_t lb_get_bl_device(lb_context lb_ctx, int device_index, lb_bl_device** bl_device);

whbruce avatar Aug 25 '16 22:08 whbruce

im currently away and will look at this properly next week, thanks

Hbrinj avatar Aug 31 '16 14:08 Hbrinj

Looks like a good idea, i'll look into this one

Hbrinj avatar Sep 05 '16 11:09 Hbrinj

I am implementing in my fork. See https://github.com/whbruce/littleb/tree/esp

whbruce avatar Sep 08 '16 19:09 whbruce

Sounds good thanks for this.

On 8 Sep 2016, at 20:38, Henry Bruce [email protected] wrote:

I am implementing in my fork. I'll push some updates by end of the week.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.

Hbrinj avatar Sep 08 '16 20:09 Hbrinj