Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

App stalled when failing to connect to flora ble device #19

Closed
Djebouh opened this issue Apr 22, 2019 · 2 comments
Closed

App stalled when failing to connect to flora ble device #19

Djebouh opened this issue Apr 22, 2019 · 2 comments

Comments

@Djebouh
Copy link

Djebouh commented Apr 22, 2019

Hello,

This may relate to #9 .
As BLEClient::connect is a blocking call, "floraClient->connect(floraAddress)" never returns if the device can't be reached.
The application therefore goes in hibernate but doesn't operate.

To workaround this, one could scan the network when initializing the bluetooth and then ignore the devices that could not be found at scan time. What do you think ?

@jaakla
Copy link

jaakla commented Apr 28, 2019

In general it would be better to scan all visible devices and then report data for all of them, instead of using fixed list of BTLE addresses.

@sidddy
Copy link
Owner

sidddy commented Jul 11, 2019

I'll check the PR, thanks for the suggestion!

@sidddy sidddy closed this as completed Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants