node-ble icon indicating copy to clipboard operation
node-ble copied to clipboard

Error: interface not found in proxy object: org.bluez.GattService1

Open lmarschall opened this issue 3 years ago • 4 comments
trafficstars

So I'm currently trying to get some characteristic values from a device, but unfortunately I can't fix this error. Using bluetoothctl I can easily extract the characteristic values, but with the package things fail.

const { bluetooth, destroy } = createBluetooth()
const adapter = await bluetooth.defaultAdapter()

const device = await adapter.waitDevice(uuid);

if(! await device.isConnected()) {

  await device.connect();
}

console.log(await device.isConnected());
await device.gatt();
throw new Error(`interface not found in proxy object: ${name}`);
            ^

Error: interface not found in proxy object: org.bluez.GattService1

lmarschall avatar Jul 15 '22 15:07 lmarschall

Can you provide your operating system name and version?

chrvadala avatar Jul 17 '22 08:07 chrvadala

I'm using Ubuntu 22.04. as OS.

lmarschall avatar Jul 17 '22 15:07 lmarschall

Thanks for the feedback. I added this ubuntu version on the CI pipeline, but I don't see any issue https://github.com/chrvadala/node-ble/pull/39. Have you tested it on a fresh Ubuntu 2204 installation?

chrvadala avatar Jul 18 '22 20:07 chrvadala

I'll investigate further in the upcoming days and give some additional information.

lmarschall avatar Jul 18 '22 21:07 lmarschall

I have run into this problem on Ubuntu 22.04 too. Was any resolution found for this issue ?

DhlDeliveryMan avatar Jul 06 '23 20:07 DhlDeliveryMan