Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bluetooth programming question

 
Frank Silbermann
Ranch Hand
Posts: 1408
  • Mark post as helpful
  • send pies
  • 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 ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic