11-08-2008 08:22 PM
is there a function to scan for bluetooth devices in range?
I looked into the APIs but could not find something for that.
11-09-2008 09:15 AM
I haven't used this but IIRC there is nothing in RIM re server discovery but it is in the jsr,
$ grep -il discovery *.txt
11-09-2008 02:26 PM
11-09-2008 02:50 PM
Sorry, those are the class in javax/bluetooth for devices that support the j2me jsr. In the RIM API,
AFAIK prior 4.3 anyway, there is nothing overtly supporting device discovery which I believe is the term
for what you want.
11-10-2008 07:41 AM
I suspect the JSR-82 Discovery API might help.
As a test, I tried the code that you will find here:
This uses the JSR82 Discovery processing to find devices. I've only done limited testing with this, however it seems what you get depends on the level of OS you have. In 4.2, this code will only find paired devices. In 4.5, this will find paired devices and attempt to pair with any Bluetooth devices in the vicinity, which is very interesting behavior. Due to other work, I've not had time to do anything further with this. I'd be very interested to see how you get on.