Bluetooth newbie help required
Bluetooth newbie help required
- Subject: Bluetooth newbie help required
- From: email@hidden
- Date: Sat, 02 Jun 2007 21:27:57 +0200
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:
This email sent to email@hidden