Re: OBEX Server setup
Re: OBEX Server setup
- Subject: Re: OBEX Server setup
- From: Eric Brown <email@hidden>
- Date: Tue, 18 Mar 2003 11:16:29 -0800
Just to clarify this a bit more, there are a few things you have to do
to get data from an incoming OBEX connection.
- Register an SDP service for your OBEX service
- If the service is transient and isn't set to auto-launch another
app, register for incoming RFCOMM channel notifications with the
channel ID in your SDP service record
- When you receive the incoming RFCOMM channel notification, create an
OBEX session using the API below.
- If the service does launch another app, use the ObjectID passed to
it to get the actual RFCOMM channel and use it to create the OBEX
session.
Let me know if you want more detail on any of these.
- Eric
On Tuesday, March 18, 2003, at 10:58 AM, Bubba Giles wrote:
Hi Paul,
You need to use
IOBluetoothOBEXSessionCreateWithIncomingIOBluetoothRFCOMMChannel()
Or
+(IOBluetoothOBEXSession*)withIncomingRFCOMMChannel:(IOBluetoothRFCOMMC
hanne
l*)inChannel
With the RFCOMM channel that is in your service record. Once the RFCOMM
channel is opened by a remote device, you should start receiving data
on the
event selector your pass to either of those methods.
Jason
email@hidden
To whom it may concern:
I am trying to create an OBEX server. I publish my own Service record
and
setup the OBEXEvent callback routine using the obj C OBEXSession
method
setEventCallback: The documentation is somewhat confusing and there
seems to
be multiple ways to accomplish the same task for configuring an OBEX
server.
Bottom line is I never see the EventCallback routine being invoked
when the
client requests an OBEXConnection. Do you have any simple example
code that
shows what is required to set up an OBEX Server? Any help would be
appreciated.
Regards,
Paul Davis
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.