You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to create an own UartCharacteristic with a predefined UUID?
I tried to extend the HostGattCharacteristic and call the super with my own UUID but something is missing in my code, I guess, because the dbus throws me the following error:
/home/pi/node-ble-peripheral-concept/node_modules/dbus-next/lib/service/object.js:29
throw new Error(`an interface with name '${iface.$name}' is already exported on this object`);
^
Error: an interface with name 'org.bluez.GattCharacteristic1' is already exported on this object
at ServiceObject.addInterface (/home/pi/node-ble-peripheral-concept/node_modules/dbus-next/lib/service/object.js:29:13)
at MessageBus.export (/home/pi/node-ble-peripheral-concept/node_modules/dbus-next/lib/bus.js:379:9)
at Bluez.exportInterface (/home/pi/node-ble-peripheral-concept/node_modules/@sorrir/bluetooth/lib/core/bluez.js:154:32)
at TriveParkCharacteristic._init (/home/pi/node-ble-peripheral-concept/node_modules/@sorrir/bluetooth/lib/core/host-interfaces/models/base-host-interface.js:98:18)
at new HostGattCharacteristic (/home/pi/node-ble-peripheral-concept/node_modules/@sorrir/bluetooth/lib/core/host-interfaces/host-gatt-characteristic.js:101:13)
at new TriveParkCharacteristic (/home/pi/node-ble-peripheral-concept/src/TriveParkRxCharacteristic.js:5:5)
at startBluetooth (/home/pi/node-ble-peripheral-concept/src/app.js:45:28)
This is how i'm trying to create the characteristic:
Hello,
is it possible to create an own UartCharacteristic with a predefined UUID?
I tried to extend the
HostGattCharacteristic
and call the super with my own UUID but something is missing in my code, I guess, because the dbus throws me the following error:This is how i'm trying to create the characteristic:
Maybe someone know what I'm doing wrong?
The text was updated successfully, but these errors were encountered: