I'm debugging an issue where a BLE peripheral device remains in the GAPROLE_CONNECTED state after I kill the central device. It remains in this state for a very long time perhaps forever. Shouldn't there be some sort of timeout so that we can revert to advertising state?
To test:
use cc2540 dongle as central device with btool
connect cc2540 DUT as peripheral to the cc2540 dongle central
unplug cc2540 dongle without disconnnect
notice the cc2540 DUT remains in GAPROLE_CONNECTED state for a very long time.