Programmatically turn off simple pairing?
Programmatically turn off simple pairing?
- Subject: Programmatically turn off simple pairing?
- From: Josh Freeman <email@hidden>
- Date: Sat, 23 Jan 2010 07:53:19 -0500
Hi,
I'm developing an app that makes RFCOMM connections between two
unpaired Macs (running 10.5.8) and if either machine has simple
pairing turned on, they both bring up a pairing request dialog when
opening the connection. (The same thing happens when running the
RFCOMMClientSample & RFCOMMServerSample apps from the Bluetooth
developer examples*).
If simple pairing is turned off (using Bluetooth Explorer) or if
the connection is with an earlier system version (10.5.4), the pairing
dialog doesn't appear.
The connection succeeds regardless of the user's action on the
pairing requests - it just adds unnecessary UI clutter and temporarily
freezes the app - so I'd like to find a way to programmatically turn
off simple pairing like Bluetooth Explorer does, or at least intercept
the dialog. (Tried swizzling IOBluetoothDevice's requestAuthentication
method but no dice).
Thanks for any help!
Cheers,
Josh
* Unrelated to the above, both the RFCOMMClientSample &
RFCOMMServerSample examples from Xcode 3.1 have a bug that prevents
remote messages from being displayed, due to a missing parameter:
RFCOMMClientSample/ChatClientController.m, line 160:
RFCOMMServerSample/ChatServerController.m, line 187:
[[NSString alloc] initWithBytes:[dataObject bytes] length:[dataObject
length]]
should be:
[[NSString alloc] initWithBytes:[dataObject bytes] length:[dataObject
length] encoding: NSUTF8StringEncoding]
_______________________________________________
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