I am using s120 for central device, and my central device connects to multiple BLE slaves. After connection, some slaves may lost connection due to power off of that device. The device might be powered on again after sometime.
The way I am currently doing is to send connection command sd_ble_gap_connect(). For one-peripheral case, it works ok. But for multiple peripherals, softdevice will return "NRF_ERROR_INVALID_STATE" error.
My question is can we know the softdevice state before call "sd_ble_gap_connect()"?
Is there a better way to know the slave is powered on again (it will still broadcast), when the central is in connection state?
Thanks.