Re: BTLE reconnection problems
Re: BTLE reconnection problems
- Subject: Re: BTLE reconnection problems
- From: Joakim Linde <email@hidden>
- Date: Wed, 29 Aug 2012 19:40:09 -0700
Hi Ram,
Let me see if I can help you.
- While in background mode, you will see get notified once if a new device comes within range.
- If you got that notification while the app was in the foreground you may not get any notification when the app enters the background.
- Connection request "pend" forever and will not timeout (they can be cancelled)
- No need to scan for the device every time
- You simply can connect to the device without scanning for it if you have previously connected to or paired with the device using it's UUID.
For more info, please see the two WWDC2012 talks about Core Bluetooth.
Thanks,
Joakim
On Aug 29, 2012, at 6:40 PM, Ram Jayaraman <email@hidden> wrote:
> I repeatedly face connection problems where the only way to discover a BTLE device which is constantly advertising is to turn On/Off Bluetooth in the iPhone through settings or in rare cases restart the phone itself. My app runs in the background and is scanning for devices with a specific list of services and it works most of the time. With one of the BTLE devices were using we had some reliability issues so I have retry logic which will repeatedly attempt to connect to a recently discovered UUID for a short while before giving up, Iam not sure if this behavior is messing up the stack.
>
> Is there a way to debug the discovery issue or any recommended steps to ensure we are not messing with the state of the BTLE stack [ like not doing repeated connection attempts etc ] ?
>
> Any help here would be much appreciated.
>
> Ram
_______________________________________________
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