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

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