Re: Welcome to the "Bluetooth-dev" mailing list
Re: Welcome to the "Bluetooth-dev" mailing list
- Subject: Re: Welcome to the "Bluetooth-dev" mailing list
- From: Landon Cunningham <email@hidden>
- Date: Fri, 19 Aug 2005 14:21:16 -0700
Hey Everyone,
I am trying to use the deviceinquiry class from the bluetooth
framework so I can discover devices and the reason I don't use the GUI
is because I need to be able to select multiple devices. So my code is
below but I am not too sure if it is the right way of using the class.
When I go through in the debugger nothing seems to change or be set
with the palmSizedDevice variable. Also I am not too sure on how to
check if the inquiry has completed. The api says I should use the
delegate methods and well I am not even sure that everything is setup
properly. I have tried looking for examples on this but I can't find
anything. Kinda frustrating. But below is my code and I am pretty sure
I am missing something.
IOBluetoothDeviceInquiry * palmSizedDevices;
id discoverDelegate;
IOReturn isFoundDevices;
palmSizedDevices = [IOBluetoothDeviceInquiry inquiryWithDelegate:
discoverDelegate];
//initilize the search object
palmSizedDevices = [palmSizedDevices initWithDelegate: discoverDelegate];
//start search
isFoundDevices = [palmSizedDevices start];
As always thanks in advance,
Landon
_______________________________________________
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