4 ms·
Two years ago I had to use DBus to connect to a Bluetooth device from Java. In the end, after a few minutes of good work the connection between the adapter and
by CHY872 11y ago
Two years ago I had to use DBus to connect to a Bluetooth device from Java.
In the end, after a few minutes of good work the connection between the adapter and the peripheral would timeout (or someone would go out of range), the whole thing would stall and we'd never get another message from BlueZ, be able to connect to any device ever again. It was without doubt the worst development experience I ever had.
Worse, you couldn't reload the dbus library and start over because then Java would scream and crash. So we had to restart the JVM, and BlueZ, etc.
I'm sure I was doing something wrong, but if I can't get it to work properly in a matter of weeks then it's not just my fault.