I'm trying to lunch bluetooth stack manually(after closing bluetooh stack).
I look after BlueCoveImpl.java and find out that bluetooth stack initialized in
private BluetoothStack detectStack()
method, which I trying to call by calling
BlueCoveImpl.instance().getBluetoothStack();
but exception occures:
Exception in thread "main" java.lang.Error: Illegal use of the JSR-82 API
at com.intel.bluetooth.Utils.isLegalAPICall(Utils.java:296)
at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1023)
I also tried BlueCoveImpl.instance(); BlueCoveImpl.getThreadBluetoothStackID();
but it made no effect.
How can I launch BlueCove?