Set rak4631 as a central device to automatically search and connect peripheral devices via BLE

Hello, RAKwireless devices developers.
My project requires connecting my wisblock RAK4631 and sensors through BLE communication module and transmitting data to my PC through serial data transmission.
I want to upload the code to the development board(central device) through platform IO (all environment configurations have been completed) to scan and connect my sensor(peripheral devices).
Now there’s some resistance on the communications code part.
I would be so grateful if you could provide some reference materials or any guidance on communication codes.