Replacement for deprecated registerIncomingDataListener:refCon:?
Replacement for deprecated registerIncomingDataListener:refCon:?
- Subject: Replacement for deprecated registerIncomingDataListener:refCon:?
- From: Jeff Johnson <email@hidden>
- Date: Wed, 14 May 2014 12:26:52 -0500
According to the documentation for -[IOBluetoothDevice
openL2CAPChannelAsync:withPSM:delegate:], "The L2CAP channel open process will not complete until the client has registered an incoming data listener on the new channel. This prevents a situation where the channel succeeds in being configured and opened and receives data before the client is listening and is ready for it."
However, I can see no way to register an incoming data listener, other than to use deprecated API. From IOBluetoothL2CAPChannel.h:
/* Deprecated API */
@interface NSObject( IOBluetoothL2CAPChannelDeprecated )
- (IOReturn)registerIncomingDataListener:(IOBluetoothL2CAPChannelIncomingDataListener)listener refCon:(void *)refCon DEPRECATED_IN_MAC_OS_X_VERSION_10_5_AND_LATER;
Is there a non-deprecated replacement for this method, or some other way to register an incoming data listener on a channel?
-Jeff
_______________________________________________
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