communication mega 2560 and uno via bluetooth module

For receiving the data have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

...R