Bluetooth newbie help required
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
codeabc@gmx.net