I recently was able to program two arduino's and 2 HC-05 devices to turn on and off and enter AT mode so I can send in commands programatically. The issue I'm running in to is that I have a command to to link the two modules (which worked great), and one to disconnect/unpair them. The unpairing command has these lines on the master module:
BTserial.write("AT+RMAAD\r\n"); //To remove authenticated pairs
BTserial.write("AT+DISC\r\n"); //To disconnect
BTserial.write("AT+INQC\r\n"); //To cancel inquiry mode
However, after a couple seconds, the two modules end up re-pairing again.
Is there any way to disable the master modules auto-pairing tendencies?
Thank you in advance!