chrvadala / node-ble

Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus
https://www.npmjs.com/package/node-ble
MIT License
310 stars 45 forks source link

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

Closed lmarschall closed 1 year ago

lmarschall commented 2 years ago

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
chrvadala commented 2 years ago

Can you provide your operating system name and version?

lmarschall commented 2 years ago

I'm using Ubuntu 22.04. as OS.

chrvadala commented 2 years ago

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?

lmarschall commented 2 years ago

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

DhlDeliveryMan commented 1 year ago

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