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

What happens if getPrimaryService can't find the service. #118

Closed
g-ortuno opened this issue May 22, 2015 · 2 comments
Closed

What happens if getPrimaryService can't find the service. #118

g-ortuno opened this issue May 22, 2015 · 2 comments

Comments

@g-ortuno
Copy link
Contributor

No description provided.

@jyasskin
Copy link
Member

From https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothgattremoteserver-getprimaryservice, "returns null if its argument is empty [i.e. no service is found]". If the name of the service was bad, https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothuuid-getservice throws a SyntaxError.

@g-ortuno
Copy link
Contributor Author

ah you're right sorry!

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