- From: PandaBalls via GitHub <sysbot+gh@w3.org>
- Date: Wed, 10 Jul 2024 11:03:48 +0000
- To: public-web-bluetooth-log@w3.org
> > > 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 `BluetoothDebug[19:03:10] Unexpected GattCommunicationStatus: 3 BluetoothDebug[19:03:08] OnConnectionStatusChanged() status=1 BluetoothDebug[19:03:03] OnGattDiscoveryComplete() success=1 BluetoothDebug[19:03:03] StartGattDiscovery() BluetoothDebug[19:03:02] No advertisement flags found. BluetoothEvent[19:03:01] Web Bluetooth Device Chooser initiating Bluetooth discovery session` Still not works.. -- GitHub Notification of comment by PandaBalls Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/466#issuecomment-2220215503 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 11:03:49 UTC