Android Question Bluetooth connection wait timeout

Mihai Rainer Jr.

Licensed User
Is there any possibility to set the connect timeout for serial (Bluetooth) on Android? I am working on an app that should be started first, then waiting for the equipment to start. Usually, it starts in a timely manner so, the application is usually able to connect before timeout, but I am wondering if it is possible to alter the timeout length, just to be sure for production, or should I simply put the connection in a loop with a limited retry number counter.