How to connect two HC-05 together ?

Hey !

So I recently posted a topic asking how to entre the AT mode on the BT module HC-05 and now that I did it and that I have one master and one slave I would like to be able to make them communicate with each other.

When I turn them on, the led does a double flicker per second which represents pairing is
finished according to this PDF : RasMicro.com is for sale | HugeDomains

So my two modules are paired, but what kind of code should I use so that I can send data to the slave.
Here is exactly what I would like to do : I have a joystick on the master's side and a servo on the slave's side and well I would like for the servo to move according to the joystick.

Thanks for your time !

Hey so I wrote those two codes (which just turn on and off a led but that's juste a beginning) but they don't work and I don't understand why...
Some help maybe please ? =)

Master2_0.ino (290 Bytes)

Slave2_0.ino (299 Bytes)