robertoprato / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

retrieveDevices of DiscovereyAgent always returns null #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To reproduce the problem, use exactly the following code on Ubuntu Linux
9.10 while having at least one bluetooth device paired with the system the
code is running on:

public class Test
{
public static void main( String[] args ) throws IOException
{
RemoteDevices[] devices =
LocalDevice.getLocalDevice().getDiscoveryAgent().retrieveDevices(
DiscoveryAgent.PREKNOWN );
System.our.println( devices );
}
}

The expected output will be a list that contains your paired devices. But
what I get is always 'null', no metter whether the paired devices are
running (have bluetooth turned on) or not.

I'm using the latest BlueCove release, namely version 2.1.0, including the
bluecove-gpl module. I don't know where to look up the build number this
tool is requesting me for. I'm not sure but I think it's all 32 bit here.

Thanks in advance

Original issue reported on code.google.com by evoid...@gmail.com on 2 Jan 2010 at 12:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
How is this supposed to help me? I think you did not understand what my problem 
is. I
don't want to perform an inquiry for new devices, I just want to get a list of 
all
the devices that are already paired with my system. Or do you want to say that 
I must
perform an inquiry first anyway?

Original comment by evoid...@gmail.com on 2 Jan 2010 at 3:22

GoogleCodeExporter commented 8 years ago
bluecove-gpl can't read from BlueZ already discovered devices.
Use bluecove-bluez it should support retrieval of this information over D-Bus.

Original comment by skarzhev...@gmail.com on 31 Mar 2010 at 4:57