external updates to BluetoothRemoteGATTCharacteristic.value not being reflected properly
Reported by
pat...@microsoft.com,
Oct 29 2017
|
||||
Issue descriptionChrome Version : 63.0.3235.0 OS Version: OS X 10.12.1 URLs (if applicable) :https://output.jsbin.com/cabakum What steps will reproduce the problem? 1. hit connect 2. 3. What is the expected result? you should get an alert What happens instead of that? nothing Please provide any additional information below. Attach a screenshot if possible. This is an attempt to use the bluetooth GATT API for the Anova sous-vide device. It's unusual, in that all communication with the device is over a single gatt characteristic. If you attempt to use a read operation (like shown in the above jsbin demo), you do something like char.writeValue('read temp\r' (full api outline available here (https://github.com/dfrankland/sous-vide/blob/master/docs/ble.md). After you have written it, the device updates the `.value` property of the characteristic. Chrome never updates this, thereby making it impossible to read any values form the device. All write operations work without a problem. UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3235.0 Safari/537.36
,
Oct 30 2017
Unable to reproduce this issue on reported version 63.0.3235.0 and on latest cnary 64.0.3253.0 using Mac 10.12.6 with steps mentioned below. Attaching screencast for reference. 1.Naviagted to https://output.jsbin.com/cabakum. 2. Clicked on connect and observed an alert to Pair/Cancel. @Reporter: Could you please check the screencast and let us know if we missed anything. Also, could you please confirm whether this works on any other browser. Thanks!
,
Oct 30 2017
I wasn't clear. This has nothing to do with that popup. You need an anova in order to replicate this issue. Once you pair of, it will automatically try to read the temperature of the device. If that succeeds, you will get an alert()
,
Oct 30 2017
Thank you for providing more feedback. Adding requester "sc00335628@techmahindra.com" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 30 2017
A characteristic value is only updated when a user reads from the peripheral or when we receive a notification from the peripheral. My guess is that the sous-vide API first subscribes to notifications from the characteristic. So you will have to that as well. To subscribe to notifications just call chracteristic.starNotifications().
,
Oct 30 2017
Also marking as won't fix since the problem is not in Chrome. |
||||
►
Sign in to add a comment |
||||
Comment 1 by scheib@chromium.org
, Oct 29 2017