Issue metadata
Sign in to add a comment
|
startNotifications Failing Chrome OS
Reported by
nall...@workbenchplatform.com,
Mar 26 2018
|
||||||||||||||||||||||
Issue description
Chrome Version : 65.0.3325.184
What steps will reproduce the problem?
I have a bluetooth controller that fails to start notifications every other time I attempt to connect it. This issue only shows up on Chrome OS, I cannot reproduce it on my Mac.
In these logs I did the following:
1) Connect to controller
2) Disconnect from Controller
3) Attempt to connect to controller again. At this point my connection flow fails when I try to start notifications.
4) Attempt to connect to controller again. This time the connection is successful
5) Repeated 2-4 two more times.
My code for starting notifications is this, I've had to add the "stopNotifications" followed by a second delay, followed by "startNotifications" in order to work around other notification bugs I was having on Chrome OS.
```
return this._batteryCharacteristic.stopNotifications()
.then(new Promise((resolve) => setTimeout(() => resolve(), 1000)))
.then(() => this._batteryCharacteristic.startNotifications())
.then(() => this._batteryCharacteristic.readValue())
.then((event) => {
this.emit('batteryLevelChange', new Uint8Array(event.buffer)[0])
})
.then(() => standardService.getCharacteristics())
```
the `startNotifications()` call is where I get "GATT operation failed for unknown reason." error.
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by ortuno@chromium.org
, Mar 26 2018Status: Duplicate (was: Unconfirmed)