Actually i use:
BlueCoveImpl.setConfigProperty("bluecove.deviceID", "1");
The code that I posted come from a test build.
Something more wired is when i ejecute this code:
Object id = BlueCoveImpl.getThreadBluetoothStackID();
System.out.println(id);
I have diferents values for every device:
bluez:0, bluez:1 and bluez:2 respectively.
Actually if i inspect in tthe debugger the (Object) id has diferrente
values;
For:
BlueCoveImpl.setConfigProperty("bluecove.deviceID", "0");
Object id show: DeviceDescriptor = 11 and DeviceID = 0
and for:
BlueCoveImpl.setConfigProperty("bluecove.deviceID", "1");
Object id show: DeviceDescriptor = 12 and DeviceID = 1
and so on for the trhid dongle.
But bluecove still send the information through the first dongle.
On Oct 14, 11:54 am, Jorge Carrasco <
cokem...@gmail.com> wrote:
> I think you should use:
>
> *BlueCoveImpl.setConfigProperty("bluecove.deviceID", "1");*
>
> instead of
> *
> BlueCoveImpl.setConfigProperty("bluecove.deviceID", "hci1");*
>
> Although hci1 string is indeed the one returned in the list when calling:
>
> *BlueCoveImpl.getLocalDevicesID()*
>
> Somewhat weird, I think "bluecove.deviceID" property needs device index (1)
> and not the id (hci1) itself.
>
> Give it a try, regards
>
> 2009/10/14 scumbag <
elias.rin...@gmail.com>
>
>
>
> > When try switching between my 3 usb dongles using the next code:
>
> > BlueCoveImpl.setConfigProperty("bluecove.deviceID", "hci1"); //
> > changed in threads
>
> > Bluecove always use the same device, hci0.
>
> > I used this code to:
>
> > BlueCoveImpl.useThreadLocalBluetoothStack();
> > BlueCoveImpl.setConfigProperty("bluecove.deviceID", "0");
> > final Object id1 = BlueCoveImpl.getThreadBluetoothStackID();
>
> > Thread t1 = new Thread()
> > {
> > public void run()
> > {
> > BlueCoveImpl.setThreadBluetoothStackID(id1);
> > agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
> > ...
> > }
> > };
> > t1.start();
>
> > Located here:
> >
http://bluecove.org/bluecove/apidocs/com/intel/bluetooth/BlueCoveImpl...()<
http://bluecove.org/bluecove/apidocs/com/intel/bluetooth/BlueCoveImpl...>