angular-web-bluetooth icon indicating copy to clipboard operation
angular-web-bluetooth copied to clipboard

Performance improvement

Open wbrett opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. We are seeing very slow response times using the library to write to a NUS serial service tx characteristic. For example, using python with the bleak BLE library we are seeing around 7-10ms response times. For the same request using angular-web-bluetooth library we are seeing on average 300 - 400ms response times. Our application requires many requests to load data from our devices so we would love to see similar performance to the python script.

Describe the solution you'd like An improvement in the amount of time for the write subscription to return. Here is an example of a request we are making: this.bluetooth.writeValue$(this.feritConnection.rx, slice) .subscribe(() => { console.log("This on average takes around 300 - 400ms to return");};

Additional context Cleaner screenshot of code we are using to write to the NUS serial service tx characteristic:

angularBluetoothWriteRequestCode

Definition of the NUS serial service: nusSerialSerrvice

wbrett avatar Mar 30 '21 00:03 wbrett

any follow up on this?

ArctoosR avatar Feb 01 '23 14:02 ArctoosR

@wbrett Thank you for reporting the performance issue. However, I cannot reproduce the issue because I don't have to the hardware/service. I will leave this question open in case someone can help/suggest a fix.

manekinekko avatar Feb 22 '23 15:02 manekinekko