W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > December 2017

Re: [web-bluetooth] GATT operation in progress - how to handle it?

From: Wayne Keenan via GitHub <sysbot+gh@w3.org>
Date: Sat, 23 Dec 2017 16:17:26 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-353734626-1514045845-sysbot+gh@w3.org>
I'm using the Nordic UART service with a tweak that inconsistently triggers `Uncaught (in promise) DOMException: GATT operation already in progress.`  

The tweak is that during the UART writeCharacteristic my BLE service handler on the peripheral is sending a notification before the service handler returns.   

Sometimes it works, once or twice, sometimes the JS notification event isnt called and sometime it errors with the above message sporadical and then sometimes continuously.

Works fine using LightBlue.

I'm on MacOS 10.12  and Chrome Version 63.0.3239.84 (Official Build) (64-bit)

GitHub Notification of comment by WayneKeenan
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/188#issuecomment-353734626 using your GitHub account
Received on Saturday, 23 December 2017 16:17:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:58:26 UTC