Thanks for the quick response. The DBL_MAX value is returned in the background. Here’s a snippet of the log created on my phone showing the transition to background and a connection that occurs after the transition.
7/13/16 13:56 Start Scan Normal
7/13/16 13:57 Resign Active Normal AppDelegate.applicationWillResignActive
7/13/16 13:57 Entered background Normal AppDelegate.applicationDidEnterBackground
7/13/16 13:57 Background time Normal centralManager:didDiscoverPeripheral:advertisementData:RSSI: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal centralManager:didConnectPeripheral: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal peripheral:didDiscoverServices:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal peripheral:didDiscoverCharacteristicsForService:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal peripheral:didUpdateNotificationStateForCharacteristic:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal peripheral:didUpdateNotificationStateForCharacteristic:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal peripheral:didUpdateNotificationStateForCharacteristic:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Background time Normal peripheral:didUpdateNotificationStateForCharacteristic:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Device Connected Normal 6050C100059D: 1
7/13/16 13:57 Background time Normal peripheral:didWriteValueForCharacteristic:error: - 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000 secs.
7/13/16 13:57 Device Disconnected Normal 6050C100059D: 1.6667
7/13/16 13:57 Start Scan Normal
I used to stop scanning after I detected a device and called connectPeripheral. I then restarted scanning inside of the peripheral:didDisconnect method. I no longer do that and just re-establish the scan in the peripheral:didDisconnect method. This problem has remained through both scenarios. There are multiple peripherals that I may need to connect to so not stopping the scan is the preferred procedure.
One area that is confusing is the matter of aggregated/ignored advertisement packets. If I respond to an advertisement and connect, talk, and then disconnect will I get advertisements from the peripheral the next time it advertises?
Also, in my current peripheral implementation, I am modifying the advertisement payload slightly (swapping 1 byte in the CBAdvertisementDataLocalNameKey data) each time the device starts advertising. My thought was that each time the peripheral wishes to connect to the central, the advertisement will look different and therefore, hopefully not be ignored. Doesn’t seem to help this particular situation though.
Thanks again for the thoughts and ideas.