• 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: Connection Interval parameter on iOS.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Connection Interval parameter on iOS.


  • Subject: RE: Connection Interval parameter on iOS.
  • From: Joakim Fernstad <email@hidden>
  • Date: Wed, 02 Oct 2013 18:09:31 +0000
  • Thread-topic: Connection Interval parameter on iOS.

Keep an eye on which thread or queue the NSTimer is scheduled on. If you run your Bluetooth code on another queue than the main queue, there is a big chance the timer will not be executed.

GCD worker threads don't use NSRunLoop which is necessary to run a NSTimer.

Joakim

-----Original Message-----
From: bluetooth-dev-bounces+jfernstad=email@hidden [mailto:bluetooth-dev-bounces+jfernstad=email@hidden] On Behalf Of Charles Y. Choi
Sent: Wednesday, October 02, 2013 10:51 AM
To: email@hidden Bluetooth
Subject: Re: Connection Interval parameter on iOS.

Srikanth -

No, there is no support for connection interval timeouts in CoreBluetooth.

That said, it's straightforward enough to implement a watchdog timer. The link below illustrates how to go about doing this.

https://github.com/kickingvegas/YmsCoreBluetooth/blob/master/YmsCoreBluetooth/YMSCBPeripheral.m#L178

Charles


On Oct 2, 2013, at 7:15 AM, email@hidden wrote:

> Is there any iOS corebluetooth function to set the connection interval timeout.
>


 _______________________________________________
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


References: 
 >Connection Interval parameter on iOS. (From: email@hidden)
 >Re: Connection Interval parameter on iOS. (From: "Charles Y. Choi" <email@hidden>)

  • Prev by Date: Re: Connection Interval parameter on iOS.
  • Next by Date: Re: Connection Interval parameter on iOS.
  • Previous by thread: Re: Connection Interval parameter on iOS.
  • Next by thread: Re: Connection Interval parameter on iOS.
  • Index(es):
    • Date
    • Thread