How to automatically connect to a BLE device when found ?

Hey guys. This is my first post in the community.

With the examples found here in the community, I created an app to send data via BLE to a uC.

I am using the JDY-33 module.

The app is working. I click on the scan button and it finds the device, I mark the device and click on connect and it connects.

My question is the following, how can I set the app to connect automatically when it finds the device ?