Re: CoreBluetooth cancelPeripheralConnection in background
Re: CoreBluetooth cancelPeripheralConnection in background
- Subject: Re: CoreBluetooth cancelPeripheralConnection in background
- From: András Kövi <email@hidden>
- Date: Tue, 29 Jan 2013 15:57:48 +0100
How do you start the disconnect call? Your app is suspended in background operation, thus your request will be fired only if the periheral starts some interaction or you bring the app back to foreground.
I remember once I tried and it seemed like my NSTimer was not suspended if I added the bluetoothPeripheral background. (I'm not sure if I did not wait enough for it to be suspended too.) But the main thread is suspended for sure, so scheduling the disconnect with a dispatch_after() or something similar will not be activated until the app comes back to foreground.
BR,
A
_______________________________________________
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