• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bluetooth programming question

 
Ranch Hand
Posts: 1419
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One Bluetooth operation broadcasts a general query to determine what other Bluetooth-enabled devices are in the vacinity.

Once I know that a particular device is in the vacinity and available for a connection, another Bluetooth operation allows me to initiate a connection.

Suppose I do not want to connect to a specific device at the moment; I just want to check its availability; but I don't care to know the availability of all the other Bluetooth devices in the vacinity. Obviously, I can do the general query and see whether the device care about is among those which respond. But is there a way to gain speed or battery-power efficiency by limiting my search to the specific device of interest?
[ May 04, 2005: Message edited by: Frank Silbermann ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well you can always try to make a connection to the device. If it creates one, you know that particular device is available.

retreiveDevices method from the DiscoveryAgent takes an int for some options, one might be to only find those that have been found before, which might be a way to make some sort of list of the device IDs of just the one you want.

I hope that was vague enough for you.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic