Bluetooth 4 take so long to connect

hi to all. I made my first app that connects to a hm-10 and opens some relays. everything works fine as long as iam connected with the ai companion. when i open the actual app that i downloaded on my phone it takes ages to connect(10-15mins to find available devices) .with ai companion connects instant. any thoughts?
thank you all