Multiple CBCentralManagers?
Multiple CBCentralManagers?
- Subject: Multiple CBCentralManagers?
- From: Rick Mann <email@hidden>
- Date: Thu, 02 May 2013 15:02:56 -0700
Is it okay to have multiple CBCentralManagers around? What happens if I instantiate a CM, use it to get a CBPeripheral, then deallocate that CM but keep the CBPeripheral around? What if I have one CM per peripheral?
I have a situation where I'm storing a representation of my CBPeripheral in Core Data (it has a UUID property). When that representation is later fetched from Core Data, I need to get a new CBPeripheral instance for it. Unfortunately I don't have easy access to the "main" CM I'm using in my app for discovery, and even so, having a "dedicated" CM allows for straightforward retrieval of a CBPeripheral in -awakeFromFetch.
--
Rick
_______________________________________________
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