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

DiscoverCharacteristics not returning promise iOS #196

Open
jthottel opened this issue Nov 6, 2020 · 4 comments
Open

DiscoverCharacteristics not returning promise iOS #196

jthottel opened this issue Nov 6, 2020 · 4 comments

Comments

@jthottel
Copy link

jthottel commented Nov 6, 2020

The device I'm working against has a service 0000ffe0-0000-1000-8000-00805f9b34fb which is discovered just fine with discoverServices. When I call discoverCharacteristics with that ID the promise never gets returned. I did a little debugging and for some reason in the args for discoverCharacteristics in bluetooth.ios.js the id is coming through as ffe0 but everything seems fine until we get to this if statement.

if (UUID === pUUID && sUUID === args.serviceUUID)

Here the sUUID does not equal args.serviceUUID and this is where the call will hang at.

As far as I can tell I have 2 issues here.

  1. The args isn't coming through properly.
  2. The if statement above should return the promise as a reject if it is not met.
@farfromrefug
Copy link
Member

@jthottel thanks. Would you l'île to make a PR?

@jthottel
Copy link
Author

jthottel commented Nov 6, 2020

I can make a PR to fix the if statement issue but I still can't explain why on this particular service the arg doesn't get passed correctly.

@farfromrefug
Copy link
Member

@jthottel about the id is coming through as ffe0 i think it is a standard behavior for know services/chars in that "namespace". Can you try using ffe0 as serviceUUID?

@farfromrefug
Copy link
Member

@jthottel i will close this. Let me know if you still have an issue

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

No branches or pull requests

2 participants