- From: Francesco Marino via GitHub <sysbot+gh@w3.org>
- Date: Wed, 03 Aug 2016 00:59:20 +0000
- To: public-web-bluetooth-log@w3.org
Hi, I think I may got stuck in this issue: basically I'm trying to cache the GATT server connection, but when I write some data it executes the command and it disconnects right after! So the second time that I try to write a command using the cached variable, I get the error "Uncaught (in promise) DOMException: GATT Service no longer exists.". The trick seems to re-connect every time the GATT server, but this adds latency and this don't allow applications like driving drones, cars, robots...since they need a real time feedback! :( I started to guess why this happens and then I read that the kind of command in this case, for my device, is "without response", so, guessing, when the API doesn't get anything after the promise, it disconnects the GATT server. If this is right...is there a workaround or we need to wait an update in the API? :\ -- GitHub Notification of comment by 360fun Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/238#issuecomment-237099612 using your GitHub account
Received on Wednesday, 3 August 2016 01:02:10 UTC