Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for same multiple of the same UUID's #187

Open
allard-potma opened this issue Sep 14, 2021 · 1 comment
Open

Support for same multiple of the same UUID's #187

allard-potma opened this issue Sep 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@allard-potma
Copy link

allard-potma commented Sep 14, 2021

Is your feature request related to a problem? Please describe.
I'm trying to communicate with a device that exposes the "Environmental Sensing Service". This service allows multiple of the same UUID's to be defined in the service, for example two temperature channels. The "ES Measurement" descriptor is used to differentiate between the channels. My device has one temperature channel defined as "Internal" and one as "External".

I'm not sure, but I even think that multiple of the same service UUID's are allowed by the Bluetooth spec, but I struggling to find it in the >1000 page core spec document.

Describe the solution you'd like
A solution to be able to read both channels. The gatt_handle should be unique for both, but I'm not sure if the Android/IOS API allows accessing by handle.

Edit: Android has the function getInstanceId.

@allard-potma allard-potma added the enhancement New feature or request label Sep 14, 2021
@pwespi
Copy link
Member

pwespi commented Oct 2, 2021

Thank you for using this plugin. Yes, it seems that multiple services and characteristics with the same UUID are allowed by the Bluetooth spec. This plugin does not yet support this. It will be quite some effort to implement, so not sure when I will have time to do it.

In the meantime, it looks like this cordova plugin supports multiple services or characteristics with the same UUID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants