• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cancelPeripheralConnection misbehavior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cancelPeripheralConnection misbehavior?


  • Subject: Re: cancelPeripheralConnection misbehavior?
  • From: Etan Kissling <email@hidden>
  • Date: Sat, 03 Nov 2012 19:38:44 +0000
  • Thread-topic: cancelPeripheralConnection misbehavior?

Try setting the peripheral reference to nil after receiving the diddisconnect callback instead of when you cancel connection.

On 03.11.2012, at 15:15, "Andras Kovi" <email@hidden> wrote:

> I observed that after I cancel a peripheral connection and set the peripheral reference to nil, the peripheral object is collected by ARC and a warning is shown that the peripheral was still in use (disconnecting if it was connected earlier).
>
> So I have two questions:
> 1. Can I turn this warning off? If I cancel a peripheral connection, I don't care what happens to the peripheral object later.
>
> 2. If I have to be aware of the connecting and disconnecting states, then why isn't there a flag on CBPeripheral that shows it? Every application will have to reimplement this anyway.
>
> Thanks,
> Andras
>
>
> _______________________________________________
> 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

  • Follow-Ups:
    • Re: cancelPeripheralConnection misbehavior?
      • From: Andras Kovi <email@hidden>
References: 
 >cancelPeripheralConnection misbehavior? (From: Andras Kovi <email@hidden>)

  • Prev by Date: Re: terminating a connection from a peripheral
  • Next by Date: Re: cancelPeripheralConnection misbehavior?
  • Previous by thread: cancelPeripheralConnection misbehavior?
  • Next by thread: Re: cancelPeripheralConnection misbehavior?
  • Index(es):
    • Date
    • Thread