alex20465 / deskbluez

Connects to a low energy actuator system via bluetooth and allows remote control via command line or internal managed interface.
MIT License
65 stars 12 forks source link

Compatibility with DPG1M #9

Closed lukasz-bielinski closed 3 years ago

lukasz-bielinski commented 3 years ago

Hi,

is this software compatible with DPG1M?

I've managed to connect to desk

➜  ~ sudo /usr/bin/deskbluez connect
✔ Choose device › DESK 9908 [F2:CA:1A:D3:4D:C4]

and launch

deskbluez serve mqtt://ip:1883 positionUpdate control
Connected to the MQTT Broker

but after sending req to mqtt

mosquitto_pub -h "ip" -p 1883 -t 'control' -m "to:1751" -d

I get the error

(node:11091) UnhandledPromiseRejectionWarning: Error: In Progress
    at new DBusError (/usr/lib/node_modules/deskbluez/node_modules/dbus/lib/error.js:9:9)
    at createError (/usr/lib/node_modules/deskbluez/node_modules/dbus/lib/bus.js:243:9)
(node:11091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

From this point I even can't move the desk manually until I disconnect Bluetooth.

Do you have any ideas what can be the issue?