#StackBounty: #java #bluetooth bluetooth: deprecated interfaces — what to use insted?

Bounty: 50

I’m currently doing my first steps programming bluetooth with java.

After an Exception I searched the net and found this: https://stackoverflow.com/a/36527915/4142984 .

The OP got the same error with more or less the same code, the code is even identical up to where the exception occurs.

The answer is to start bluetoothd in compatibility mode.

I think this is not the way to go but instead avoid the deprecated interfaces.

I have done sudo apt-get install libbluetooth-dev and the java lib greets me on start up with BlueCove version 2.1.0 on bluez .

Which newer packages/libraries should I use?

Edit: I’m using ubuntu 18.04 The linked answer is from 2016, so there really should be packages/libraries with non-deprecated interfaces.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.