site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Sup Ralf- I think we're seeing 2 issues here: mat On Nov 24, 2006, at 4:46 AM, Ralf Menssen wrote: then I'm connecting it to FileTransferServices: status = [mFileTransferService connectToFTPService]; and the delegate function: So I call: status = [mFileTransferService disconnect]; and in the call back: status = [mFileTransferService connectToObjectPushService]; Ralf Menssen _______________________________________________ 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... 1.) I think you're right, isConnected should be returning FALSE on receiving disconnectionComplete. I'll look into it ASAP. 2.) However, if you're trying to switch over to the OPP profile from FTP, you're going to have to close down your OBEXSession and create a new one. From what I can see, OBEXSession objects are created according to an SDP record so the FTP OBEXSession cannot be (re)used for OPP operations. So yes, you'll have to completely close down your OBEXSession. It seems to be not possible to close an ObexFileTransferServices without destroying the ObexSession. I am creating an ObexFileTransferServices using withOBEXSession (relevant code only): mOBEXSession = [[IOBluetoothOBEXSession withDevice:mBTDevice channelID:channelID] retain]; mFileTransferService = [[OBEXFileTransferServices withOBEXSession:mOBEXSession] retain]; - (void) fileTransferServicesConnectionComplete: (OBEXFileTransferServices *)inServices error:(OBEXError)inError is entered with (inError == 0). Everything is fine, I can work with the device. For some reason I now want to switch to the ObjectPushService, it behaves differently when sending a file and this other behaviour is wanted. - (void) fileTransferServicesDisconnectionComplete: (OBEXFileTransferServices*)inServices error:(OBEXError)inError { NSLog ([NSString stringWithFormat:@"DisconnectionComplete: %d", inError]); if([mFileTransferService isConnected]) NSLog (@"After Close is still connected"); } It tells me disconnection was successful (inError == 0), but also that mFileTransferService is still connected. The now following attempt to connect to ObjectPushService: fails in the fileTransferServicesConnectionComplete delegate function with error -21882 (kOBEXSessionAlreadyConnectedError). Connecting to FTPServices again would also fail with same error. So to me it looks like disconnecting does not what it promises to do. Is it necessary to close the whole OBEXSession here? _______________________________________________ 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/mddavids% 40apple.com This email sent to mddavids@apple.com This email sent to site_archiver@lists.apple.com