Re: OBEX question
Re: OBEX question
- Subject: Re: OBEX question
- From: luc bergevin <email@hidden>
- Date: Sun, 29 May 2005 18:20:28 -0400
hi,
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.
class IOBluetoothSDPServiceRecord
- (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.
I hope this helps...
Luc Bergevin.
El 29/05/2005, a las 14:22, Christian Klein escribió:
In the code:
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:
[fileTransfer setDelegate: del];
[fileTransfer connectToObjectPushService];
And finally, I try to send a file:
[fileTransfer sendFile: @"test.jpg"];
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?
kind regards,
Chris
_______________________________________________
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