manekinekko / angular-web-bluetooth

The missing Web Bluetooth module for Angular
https://manekinekko.github.io/angular-web-bluetooth/
MIT License
196 stars 59 forks source link

Are multiple services per connection and characteristics per service supported? #58

Closed ojousima closed 4 years ago

ojousima commented 5 years ago

Thanks for the awesome project :)

I'm interested in supporting Nordic UART Service and battery level service at the same time. I'd need to share the connection between different characteristics and services at the same time.

After a quick exploration of the project it seems that currently I'd need to disconnect from one characteristic before connecting to next, is this the case or did I miss something?

ojousima commented 5 years ago

I can now read several characteristics from single device, but reading value from each new characteristic requires me to go through device selection process again. Is there an easy way to programmatically try to read the characteristics on existing connection, without requiring user to reselect the device for each characteristic?

manekinekko commented 4 years ago

I am afraid that's a protection from the browser and I don't know if you can bypass it.

Closing this issue. Please open a new one if other errors show up.

intensite commented 4 years ago

I am afraid that's a protection from the browser and I don't know if you can bypass it.

Do you have any links related to that? This seems like a serious limitation. For complex devices it is strongly recommended to group characteristics in different services. We can't ask the users to disconnect and reconnect to the same device every time?!