Hi Fred,
Seems like no one is going to answer our previous question. Probably a bug report should be issued.
For your current question: would it help if you restarted scanning when a peripheral is found? It may be possible to do this in the didDiscover callback. Another option is to add the bluetooth-peripheral background mode and keep an NSTimer running that will reset the scanning from time to time. (If the peripheral mode is declared, the NSTimer will continue to run while in background; however, this might be a trick that is not "honored" during the App Store review process.)
Hope this helps, Andras On 2012.10.31., at 21:25, Frederic Visticot < email@hidden> wrote: I'm using the [_centralManager scanForPeripheralsWithServices: servicesUUID options:options] to detect peripherals in background.
To get it works I need to set the option CBCentralManagerScanOptionAllowDuplicatesKey to NO For my use case, I need to detect the same peripheral periodically... and the AllowDuplicatesKey with the NO value (required for background mode) does not help me :( Is it possible to reset the central manager and after this reset, the peripheral previously detected is re-detected after the reset ?
-Fred
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
|