Bluetooth communication between two Arduino Mega

Hi there, I need to establish bluetooth communication between two Arduino Mega for data sharing. I am using HC-05 bluetooth modules. I don't know how to pair them for communication. I can do basic bluethooth communication with smartphone as pairing is done by smartphone. How to do with Arduino only? Please Help.

Hello and welcome,

See this document for available AT commands: http://eskimon.fr/wp-content/uploads/2014/10/commandes_AT_HC05.pdf

Thanks I will try this