Re: Public API for Bluetooth Inquiry
On Sunday, November 17, 2002, at 03:33 PM, Paul Davis wrote: Eric, I put some time into this and would like your opinion on my conclusions: 1. I looked into using the IOBluetoothPairingController class as a means for obtaining the device name. The runPanelWithAttributes works fine however it returns nothing. Therefore, it's not very useful. That would be a problem, wouldn't it. It will be fixed in the next dev release. 2. Next I used IOBluetoothDeviceSelector class. The runPanelWithAttributes returns a pointer to an IOBluetoothDevice with all the salient information pertaining to the selected device from the GUI. This is extremely useful. I'm having some trouble extracting the details of the Service Record but I won't burden you with questions until I have spent more time on this. Let us know how it turns out. There should be API to do everything you need. 3. After thinking more about this, the API Apple is working on that will give access to the list of paired devices would be useful. Probably a better method in lieu of public inquiry API. That sounds good - especially if you require the device to be paired to use. 4. I can't get the getRFCOMMChannelID method in the IOBluetoothSDPServiceRecord class method to work. It always bombs and was hoping you could comment. Are there are issues with this method? Is the app crashing or is it throwing an uncaught objc exception? The code does have a couple of holes in the case where the ProtocolDescriptorList attribute is improperly formatted. It checks the first UUID in each sequence in the ProtocolDescriptorList for the RFCOMM UUID. Then it assumes that the sequence has a second element and attempts to get the RFCOMM channel ID from it. So if one of the sequences has no elements or if the first element is the RFCOMM UUID and there is no second element, it will cause an exception to be thrown. That's a bug and we'll fix it. But it should work properly if the ProtocolDescriptorList is formatted correctly. - Eric _______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Eric Brown