commit | d810f68079066a4a8f9e9a3c3730fc1bcdf72f7a | [log] [tgz] |
---|---|---|
author | Reilly Grant <reillyg@chromium.org> | Thu Dec 06 19:07:29 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 06 19:07:29 2018 |
tree | fcf2bad09fbe2cdbb608644e397890378fd0b5f0 | |
parent | bee8665911f1e87abbd90b9aa4e0ccb141ee2575 [diff] |
[bluetooth][win] Force uncached characteristic value reads The ReadValueAsync() method will return the characteristic value cached by Windows. It appears that when a value is written to a characteristic Windows assumes that the device will respond with the value written and will update its cache to that value. This is a problem for devices which do not follow this behavior and instead respond with an unrelated value. This change switches to using the ReadValueWithCacheModeAsync() method and passes the BluetoothCacheMode_Uncached flag in order to force Windows to always read the value directly from the device. Bug: 904114 Change-Id: I76b214abd0004fc311e1f32a9457273df60a6f54 Reviewed-on: https://chromium-review.googlesource.com/c/1364393 Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#614437}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .