Connection approach between central device(scan) and peripheral device(advertise)

Hi Nordic Team,

In my BLE project I'm creating a Test application which gets all the advertising data from peripheral devices. The complete list of scanned device is received at Central device giving information like company id, device id, device name and MAC address. Also each peripheral device should get connected to central device, get service(GATT) from peripheral device and disconnect from central device (iteratively).

Please share logic for the above scenario.

Please help as soon as possible.

Thanks & Regards,