Hello,
I am trying to work with two usb dongles in my application. I use 64
bits Fedora Linux.
I am testing the new functions
BlueCoveImpl.useThreadLocalBluetoothStack()
getThreadBluetoothStackID() and setThreadBluetoothStackID(...) .
I have tested the example that appears in documentation but I have two
problems. First, when I call LocalDevice.getProperty("bluecove.stack")
always returns bluez. The second depends on beta version
TESTS with bluecove-2.0.3-20080407.050219-49.jar
------------------------------------------------------
getThreadBluetoothStackID() always return null.
TEST with bluecove-2.0.3-20080408.060955-51.jar
----------------------------------------------------
getThreadBluetoothStackID() throws an exception
Exception in thread "main" java.lang.Error: Illegal use of the JSR-82
API
        at com.intel.bluetooth.Utils.isLegalAPICall(Utils.java:285)
        at
com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:
726)
        at
com.intel.bluetooth.BlueCoveImpl.getThreadBluetoothStackID(BlueCoveImpl.java:
505)
        at pruebas.pbluecoves.main(pbluecoves.java:23)
Java Result: 1
Thank you in advance.
Luis
DOC EXAMPLE
----------------
BlueCoveImpl.useThreadLocalBluetoothStack();
 BlueCoveImpl.setConfigProperty("bluecove.stack", "widcomm");
 final Object id1 = BlueCoveImpl.getThreadBluetoothStackID();
 ... do some work with stack 1
 Thread t1 = new Thread() {
    public void run() {
        BlueCoveImpl.setThreadBluetoothStackID(id1);
        agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
        agent.startInquiry(...);
        .....
    }
 }
 t1.start();
 // Start another thread that is using different stack
 Thread t2 = new Thread() {
    public void run() {
        BlueCoveImpl.setConfigProperty("bluecove.stack", "winsock");
        agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
        agent.startInquiry(...);
        .....
    }
 }
 t2.start();
On 8 abr, 01:31, "
skarzhevs...@gmail.com" <
skarzhevs...@gmail.com>
wrote: