Concurrent switching between scan and advertise



I am using nrf52-sdk-14(pca10040) with s132_nrf52_5.1.0_softdevice.My goal is ,that device need to scan(central mode) for nearby bluetooth enabled devices and once it scan any device it should advertise detected MAC as Payload.I have read that ble_app_central_and_peripheral/app_hrs_multirole_scan example will do this.I tried with that example,but no luck.could anyone please assist me.if anyone worked out
with sdk-12,it is also fine for me.

Best regards,
Jagadeesh Dadi