Re: Peripheral dealloced while connecting under ARC?
Re: Peripheral dealloced while connecting under ARC?
- Subject: Re: Peripheral dealloced while connecting under ARC?
- From: Roland King <email@hidden>
- Date: Sat, 09 Mar 2013 10:35:24 +0800
On 9 Mar, 2013, at 10:31 AM, Rick Mann < email@hidden> wrote: I'm not keeping a reference to a peripheral I've just discovered because I don't yet have enough information. I need to connect first, discover some more services, query them.
"CoreBluetooth[WARNING] <CBConcretePeripheral: 0x1f5bd0f0 UUID = (null), Name = "My Awesome Peripheral", IsConnected = NO> is being dealloc'ed while connecting"
It seems that my peripheral should not get released by ARC while a connection is in progress. Is this a bug, or do I really need to keep a reference to each peripheral I discover?
You have to keep a reference to the peripheral if you want to connect to it. |
_______________________________________________
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