Question

Apple's Bluetooth API doesn't say what config dictionary should be provided for [IOBluetoothDevice openL2CAPChannelSync:withPSM:withConfiguration:delegate:].

The keys/values I'm suppose to provide are unknown to me. To overcome this, I wish to send an empty dictionary to the API call, but behind the scenes - track which keys are accessed.

How do I build a subclass of NSDictionary that will NSLog the accessed keys?

Was it helpful?

Solution

For the IOBluetoothDevice options, you should look in IOBluetoothDevice.h:

// These are for the configuration of L2CAP Channels:
#define kIOBluetoothL2CAPChannelMaxAllowedIncomingMTU       @"MaxAllowedIncomingMTU"
#define kIOBluetoothL2CAPChannelDesiredOutgoingMTU          @"DesiredOutgoingMTU"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top