Re: Bluetooth newbie help required
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com What are you running ? (MacOS X version or Bluetooth version) ... Marco On Jun 2, 2007, at 12:27 PM, codeabc@gmx.net wrote: Hello, Could someone please help me out? Thanks _______________________________________________ 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... 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. -- 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/mpontil% 40apple.com This email sent to mpontil@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Marco Pontil