Im trying to connect my app to a bluetooth HC05 using the mac address, if the HC05 is on before opening the app there is no problem with the connection. however if the app is on before turning on the HC05, the app will not read it. is there a way to let the app to just keep searching for the mac address to reconnect automatically. I dont want to create a button to search for bluetooth devices to connect. I just want to always connect to FC:A8:9A:00:07:B1.
Is there a way to just keep searching after any disconnections happens to directly reconnect without restarting the app?
please find my code below: