Avoid pairing dialog?
Avoid pairing dialog?
- Subject: Avoid pairing dialog?
- From: Matt Jacobsen <email@hidden>
- Date: Sun, 24 Jul 2011 00:10:55 -0700
I've been working on a BT application and playing with the RFComm and OBEX examples. It seems that on Mac OS X 10.6 _all_ BT connections require a pairing pin. To be clear, I'm running the BT examples on two Mac OS X 10.6 laptops which have BT enabled and set to discoverable. In all the example apps as soon as a connection on the receiving laptop is made, it forces a "Pairing request" dialog to pop up.
Is this avoidable at all? There doesn't seem to be any API to allow me to skip this step. Opening the rfcomm connection without authentication still results in the receiving laptop requesting a pairing pin. Opening the rfcomm connection with authentication prompts a dialog on the sending laptop for a pairing pin. It stikes me as crazy that _all_ BT connections must be paired before they can complete. The app I'm writing cannot pop this dialog up (it will be infeasible to do so for each connection that is made). So can I include a pin in software to avoid this? Or does Apple require every BT connection to be from a paired device that can only be paired by the GUI?
BTW, it seems that Apple does avoid the pair request process when transferring files via BT sharing. Is there an API I can piggy back on to avoid this. I've been planning on publishing my own BT service but I'll use an existing service if that'll work?
Thanks,
Matt
_______________________________________________
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