Re: Reinitiate CoreBluetooth BTLE Pairing Connection
Re: Reinitiate CoreBluetooth BTLE Pairing Connection
- Subject: Re: Reinitiate CoreBluetooth BTLE Pairing Connection
- From: Craig Dooley <email@hidden>
- Date: Sun, 08 Nov 2015 21:51:13 -0800
Removing the device from Bluetooth Settings on iOS and the Bluetooth Preference Pane on OS X will cause the next connection to prompt the user for a pairing.
- Craig
> On Nov 8, 2015, at 4:34 PM, Zachary Kaplan <email@hidden> wrote:
>
> Hello,
>
> For some context, I am building BTLE central and peripheral applications using the CoreBluetooth framework. The central application runs on OS X, whilst the peripheral runs iOS. The peripheral advertises a service that has a characteristic which requires encryption. When connected, the remote central tries to subscribe to the characteristic, and then CoreBluetooth tries to pair with the peripheral to create a secure connection. The user is then prompted to accept or deny the pairing connection. On subsequent initializations of the peripheral application (closing and reopening the application), CoreBuetooth does not prompt the user to accept or deny the pairing connection on subsequent attempts. This is usually the desired behavior, but for testing purposes I would like to reinitiate the pairing connection. During development, this will allow me to test the application as if it were installed for the very first time. I have tried changing the UUID's and even removing the application all together; all without luck. I have also attempted to delete the Bluetooth property list file on OS X, also without luck. The only mechanism I have been able to utilize with success to reset the pairing connection, has been to completely wipe the iOS device, which is very time consuming. Does anybody know of a way I can force the iOS device to reinitiate the pairing connection as if this was the users first time installing the application and the OS X's first time discovering the service?
>
> Thanks,
>
> - Zachary Adam Kaplan
> _______________________________________________
> 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
_______________________________________________
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