Re: CoreBluetooth and reading RSSI
Re: CoreBluetooth and reading RSSI
- Subject: Re: CoreBluetooth and reading RSSI
- From: "Gutierrez, Gerald" <email@hidden>
- Date: Tue, 07 Feb 2012 19:26:20 -0600
- Acceptlanguage: en-US
- Thread-topic: CoreBluetooth and reading RSSI
Hi Joakim,
Thanks for the clarification. Re the question below, I'm not trying to run code carte blanche, but I would like to use a timer to keep track of the RSSI of a connected peripheral even if the app is in the background. If I cannot run a timer, I'm unable to monitor the RSSI and respond appropriately since there is no periodic reporting of RSSI.
Do you have any guidance on implementing this?
Gerald.
#1 For example, I created a small app, set UIBackgroundModes to bluetooth-central and created a recurring NSTimer to increment a counter. When I run this app, the timer runs but stops when I put the app in the background. It resumes when I put the app back in the foreground. Is this proper behavior or am I missing something?
Once you have the Bluetooth privilege to run in the background, this gives you the privilege to run Bluetooth related code. However, it does not give you a carte blanche to run in the background. Meaning, the App get to run when there is Bluetooth events that needs to be serviced. One example of this would be logging heart rate events from a heart rate monitor. So, you can't use the Bluetooth privilege as a back door to get other background privileges. In your case, the timer is a non-Bluetooth event and so Bluetooth privileges will unfortunately not help you.
|
_______________________________________________
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