intel-iot-devkit / tinyb

TinyB exposes the BLE GATT API for C++, Java and other languages, using BlueZ over DBus.
MIT License
255 stars 114 forks source link

BluetoothEvent callbacks in Java #34

Open petreeftime opened 8 years ago

petreeftime commented 8 years ago

Java API currently does not implement callbacks for BluetoothEvents.

youcangetme commented 8 years ago

Will there be a BluetoothEvent for Device Disconnect?

petreeftime commented 8 years ago

There will be one for when connected status changes: https://github.com/intel-iot-devkit/tinyb/commit/415dea7504a3ee58b76bc31f3b9ec9fe2e9381d2#diff-16bcd3d48f4412f8f516008ae7530ffaR79. You'll have to register a callback which will get called when connection status changes, but it will not be implemented as a BluetoothEvent.