site_archiver@lists.apple.com Delivered-To: Bluetooth-dev@lists.apple.com hi, class IOBluetoothSDPServiceRecord I hope this helps... Luc Bergevin. El 29/05/2005, a las 14:22, Christian Klein escribió: In the code: [fileTransfer setDelegate: del]; [fileTransfer connectToObjectPushService]; And finally, I try to send a file: [fileTransfer sendFile: @"test.jpg"]; kind regards, Chris _______________________________________________ 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 see that you changed the channelId from the value "4" to "channelId". But where do you get it from? You should get it from the SDP. - (IOReturn)getRFCOMMChannelID:(BluetoothRFCOMMChannelID *)rfcommChannelID; If you try to force a channelId number, the Bluetooth module may refuse it. I see it is an obexSession , not an RFCOMM session, but i think that obex runs over RFCOMM. Maybe you can try to look on that side. id obexSession = [IOBluetoothOBEXSession withDevice: target channelID: channelID]; OBEXFileTransferServices *fileTransfer = [OBEXFileTransferServices withOBEXSession: obexSession]; TransferDelegateObject *del = [[TransferDelegateObject alloc] init]; ( >>> output for init method) Then the delegate object is set and the remote devices should be connected: Neither the method fileTransferServicesConnectionComplete, nor any other method of the delegate object is called. Has anybody ever successfully used the OBEXFileTransferServices class and send me an example? This email sent to site_archiver@lists.apple.com
participants (1)
-
luc bergevin