arduino mega adk with rn-42 bluetooth module

Hello everyone!
i am building a project for which i need to calculate rssi value from the bluetooth device. Here, i am using one slave (rn-42 bluetooth module with arduino mega adk) to send rssi value and one master(rn-42 bluetooth module with arduino mega adk). Can anyone please post a code to capture the rssi value?
Thank you.