RE: Stored profile limits
RE: Stored profile limits
- Subject: RE: Stored profile limits
- From: Jeff Hosack <email@hidden>
- Date: Thu, 25 Apr 2013 17:23:13 +0000
- Thread-topic: Stored profile limits
Temporary in what sense? This app is not releasing to the public, but I would like for it to keep working if the iPod gets its iOS version upgraded in the future.
-----Original Message-----
Are you talking about cached profiles of paired devices? If so, there is no way to clear it programmatically using public API, but if you are interested in private API as a temporary solution CoreBluetooth.framework can do it.
For example:
BluetoothManager *mgr = [BluetoothManager sharedInstance]; BOOL prevPairingEnabled = [mgr devicePairingEnabled]; [mgr setDevicePairingEnabled:YES]; NSMutableArray *devArray = [mgr pairedLEDevices]; for (BluetoothDevice *dev in devArray) {
[dev unpair];
}
[mgr setDevicePairingEnabled:prevPairingEnabled];
In case of any failure you will notice in output window - BluetoothManager is rather verbose.
On Thu, Apr 25, 2013 at 2:32 PM, Jeff Hosack <email@hidden> wrote:
> We are using an iPod to test BLE devices in the production environment.
> Each test leaves behind a Bluetooth profile in settings. I never
> found a way to clear these out programmatically, so the plan was to
> clear them manually at some interval. How many profiles can likely
> exist before problems start to occur? Our customer is reporting that
> they have started seeing failures to pair with new devices with as
> little as 11, and also with
> 44 stored profiles. They said that after clearing some profiles, it
> started working again. If there is no known limit, what else could cause this?
>
>
>
> Also, I will ask again, is there a way to clear a profile in code?
>
>
>
> Jeff
>
_______________________________________________
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