-
Notifications
You must be signed in to change notification settings - Fork 191
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
No services matching UUID help #513
Comments
To be able to access the services, you need to specify them in the |
Hello again: I managed to get to the service (and to the characteristic after that), the solution was adding another service in the
If I only specify one of them in **Edit: For this to suceed I had to use a custom bluetooth device (raspberry), when using nRF on my phone with the two services solution it just stays waiting for the connection, it doesn't show any message, just keeps waiting and waiting. |
Yes, if it's not specified, the site does not receive permission to access
the service. This is intended behavior.
…On Mon, Sep 7, 2020, 11:40 Eduardo Galeano ***@***.***> wrote:
Hello again:
I managed to get to the service (and to the characteristic after that),
the solution was adding another service in the optionalServices field and
then ask for just one of them with server.getPrimaryService, something
like this:
async function onButtonClick() {
let device = await navigator.bluetooth.requestDevice({
acceptAllDevices: true,
optionalServices: [0x1801, "162348d9-d5a8-4870-8086-8e152fd06a92"]
});
let server = await device.gatt.connect();
console.log(server);
let service = await server.getPrimaryService("162348d9-d5a8-4870-8086-8e152fd06a92");
console.log("serviced");
console.log(service);
}
If I only specify one of them in optionalServices and try to retrieve it,
it won't work, is this the expected behavior?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#513 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXTX3MMT2I6ICWJCNHICA3SEUEGPANCNFSM4Q3GAE5Q>
.
|
The same problem as the originator: It's been bothering me for a long time
|
Hey @zhangzhoufei, sorry for the delay, you could try to add another service (besides the one you need to access) in the |
i get the same error,this is my code:
Any ideas of what could be happening, or another way to fix this? |
Hi,
Meanwhile I am able to successfully work with the Device Information Service (0x180A), and Heart Rate Service (0x180D). Here is the log from nRF Connect: ==========================================
|
@dvmarinoff, please file an issue on crbug.com for this problem and tag it with the Blink>Bluetooth complement. If you can please test on a macOS or Windows device as well. |
added Issue 1155044 |
I'm observing that chrome://bluetooth-internals only lists 8 of 10 available services. The missing services are battery_service
Version Info:
|
Turns out that a default BlueZ plugin was stealing battery_service Now chrome successfully detects battery_service |
I ran into this issue when developing against a custom BLE service (service is running on another linux node). After adding characteristics to the service it seems that triggered this issue. To resolve I have consistently been able to do the following (on the web bluetooth node):
|
Hello Everyone:
I've been playing around with WebBluetooth since a couple of days ago, for that I've been using my phone with the nRF Connect app as a GATT Server, and I've been using the next function to attempt the connection with the phone:
I've been trying the services:
0x181C
,health_monitor
,heart_rate
, but the result I'm getting is:DOMException: No Services matching UUID 000180-0000-1000-8000-00805f9b34fb
; and with the service"0000aaa0-0000-1000-8000-aabbccddeeff"
I getDOMException: Origin is not allowed to access the service. Tip: Add the service UUID to 'optionalServices' in requestDevice() options.
Any ideas of what could be happening, or another way to test this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: