Re: [web-bluetooth] startNotifications either gives errors or ties up gatt operations (#466)

> > For future reference, if you met this error while doing startNotifications → Uncaught (in promise) DOMException: GATT Error: Not supported. It is probably because the characteristic you try to subscribe to doesn't have BLE2902 descriptor.
> > #include <BLE2902.h> BLE2902* pid2902 = new BLE2902(); charact.addDescriptor(pid2902);
> 
> I added BLE2902, and nRF connect APP on my android phone works well , but in PC Edge browser : characteristic.startNotifications();
> 
> then got DOMException: GATT Error Unknown.

You also need to add delay between the API calls, I think it has race condition problems internally 

-- 
GitHub Notification of comment by curlyz
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/466#issuecomment-2220060216 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 July 2024 09:54:36 UTC