RE: Connection Interval parameter on iOS.
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