Re: Bluetooth newbie help required
Re: Bluetooth newbie help required
- Subject: Re: Bluetooth newbie help required
- From: Marco Pontil <email@hidden>
- Date: Sat, 2 Jun 2007 12:51:08 -0700
What are you running ? (MacOS X version or Bluetooth version)
... Marco
On Jun 2, 2007, at 12:27 PM, email@hidden wrote:
Hello,
I tried to establish a RFCOMM serial profile to a Symbian S60 phone
that is running a chat application.
I am programming in C.
I can obtain the device and do an SDP query on it.
Then I am using the following code to find the RFCOMM channel id:
IOBluetoothSDPServiceRecordRef service;
IOBluetoothSDPUUIDRef sppServiceUUID =
IOBluetoothSDPUUIDCreateUUID16
(kBluetoothSDPUUID16ServiceClassSerialPort);
service = IOBluetoothDeviceGetServiceRecordForUUID(device,
sppServiceUUID);
IOReturn ret;
ret = IOBluetoothSDPServiceRecordGetRFCOMMChannelID
(service,&channelID));
ret = IOBluetoothDeviceOpenConnection(device, nil, nil);
ret = IOBluetoothDeviceOpenRFCOMMChannelSync(device, &chan,
channelID, myEventListener, (void *)self);
And that last function call fails and sets device to 0.
I don't know what to do because the channelID number is definitely
correct.
Could someone please help me out?
Thanks
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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