Arduino HC-05 to HC-06 communicating to open a door strike

Hi Guys,
I am really new to Arduino and started using them for a school project. Currently I have a HC-05 module and a HC-06 module and I have got them powered on and communicating. Now I need to implement a button to activate this door strike (fail safe). As this is a fail safe lock it requires power so I need the button to tell the other Arduino to power off the strike so the door can be opened. I have no idea how to begin the code for this instruction. If its important but here is the code I uploaded to the HC-05 and the HC-06 (obviously on different arduinos). This code is from a tutorial i followed on the internet I don't really understand it but it worked. I don't really have time to learn the language due to the time limitations.
HC-05
#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3);

char c = ' ';

void setup()
{
Serial.begin(9600);
Serial.println("Arduino with HC-05 is ready");

BTserial.begin(38400);
Serial.println("BTserial started at 38400");
}

void loop()
{

if (BTserial.available())
{
c = BTserial.read();
Serial.write(c);
}
if (Serial.available())
{
c = Serial.read();
Serial.write(c);
BTserial.write(c);
}
}

HC-06
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(2, 3); // RX | TX

void setup()
{
Serial.begin(9600);
Serial.println("Arduino with HC-06 is ready");

BTSerial.begin(9600);
Serial.println("BTserial started at 9600");
}

void loop()
{

if (BTSerial.available())
Serial.write(BTSerial.read());

if (Serial.available())
BTSerial.write(Serial.read());
}

I don't really have time to learn the language due to the time limitations.

So, you hope someone here will help you cheat? Forget it.

PaulS:
So, you hope someone here will help you cheat? Forget it.

Actually it was recommended by my teachers to ask for help on the forums because they did not know the language either. ;(

50me0ne:
Actually it was recommended by my teachers to ask for help on the forums because they did not know the language either. ;(

Then why are they trying to teach it?

There are plenty of examples provided with the IDE and on the playground for using switches. Connect one leg of the switch to ground. Connect the other leg to a digital pin whose mode is INPUT_PULLUP.

Use digitalRead() to read the pin. LOW will mean pressed. HIGH will mean not pressed.

You will probably want to look at the state change detection example, so you send a message only once when the switch becomes pressed, not every time you see that the switch is pressed.

As for the message, it could be "Hey, bro, could you please unlock the door? I need to take a leak really bad.". Or, it could be '0'. It depends on how much effort you want to put into collecting the message and parsing it. One is easy. The other, not so easy.

50me0ne:
I don't really have time to learn the language due to the time limitations.

I don't understand that attitude. You would not expect to play the piano without putting in time? Or draw portraits of people? Why do you expect to learn programming instantly.

If you don't have time just pay someone to do the job for you. You can ask in the Gigs and Collaborations section of the Forum.

If you do want to take the time to learn programming have a look at the examples in Serial Input Basics - simple reliable ways to receive data. And maybe also look at Planning and Implementing a Program

...R