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 bubba@apple.com 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 | bluetooth-dev@lists.apple.com 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 | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Eric Brown