Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add promises queue #1

Merged
merged 1 commit into from Oct 19, 2016
Merged

Add promises queue #1

merged 1 commit into from Oct 19, 2016

Conversation

beaufortfrancois
Copy link
Contributor

Hello @don,

I've noticed a bug in the app that could happen when reading all characteristics at the same time. This patch adds a promises queue after getCharacteristics.
See https://googlechrome.github.io/samples/web-bluetooth/device-information-characteristics.html for the sample.

Please let me know what you think.

@don don merged commit 44c106d into don:master Oct 19, 2016
@don
Copy link
Owner

don commented Oct 19, 2016

Thanks. This is a good fix since it fixes Chrome on Android. Now when Chrome connects, it can sync the state of the UI to the peripheral.

Can you explain this code a bit more? Chrome on OS X & Chromebook were OK without this fix, so I'm wondering if this exposes a flaw in the Android implementation?

@beaufortfrancois
Copy link
Contributor Author

I'm trying to document these temporary flaws at https://groups.google.com/a/chromium.org/forum/#!msg/web-bluetooth/QQP6ExsKHRI/3HLYrVpbBQAJ
Feel free to jump into the conversation.

@beaufortfrancois beaufortfrancois deleted the patch-1 branch October 19, 2016 08:00
@beaufortfrancois
Copy link
Contributor Author

And see WebBluetoothCG/web-bluetooth#316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants