The following examples demonstrate the BLE Central and Peripheral role simultaneously:
Experimental: BLE Relay Example
Experimental: BLE LE Secure Connections multirole example