Re: Continuous discovery of bluetooth devices
Re: Continuous discovery of bluetooth devices
- Subject: Re: Continuous discovery of bluetooth devices
- From: Bubba Giles <email@hidden>
- Date: Tue, 21 Feb 2006 10:17:58 -0800
- Thread-topic: Continuous discovery of bluetooth devices
Title: Re: Continuous discovery of bluetooth devices
You can do this two ways, neither is elegant:
- Keep doing IOBluetoothDeviceInquiry every X seconds. Bad idea—makes Bluetooth connections slow, or stop during an inquiry. Also, the Bluetooth framework could throttle these if you do them too often, so even though you might want to do it every X seconds, we could make a decision for you and prevent it.
- Once you know which device you want, you can try to connect to it every X seconds. Not great either, but better than doing inquiries all the time.
Bluetooth is not really designed with this usage scenario in mind, and thus, as you can see, there is no good way to do it.
jason
Hi,
is there an elegant way to discover devices (or one particular device) as soon as it "comes online" or comes back after being out of range?
Polling IOBluetoothDeviceInquiry would not "elegant" IMHO.
Ruotger
---
Ruotger Skupin, Mac OS X Software Engineering
ilink Kommunikationssysteme GmbH
Münzstr. 13; 10178 Berlin - Germany
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden