Replacement for deprecated registerIncomingDataListener:refCon:?
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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jeff Johnson