RF communication problem between two nRf24l01+ modules

Hi , I am trying some basic communication between two RF modules with hint from the maniac bug programming example.
The transmitter part code:

#include <SPI.h>
#include “nRF24L01.h”
#include “RF24.h”

RF24 radio(8,7);
int msg[1];

const uint64_t pipe = 0xE8E8F0F0E1LL;

void setup(void)
{
Serial.begin(9600);
radio.begin();
radio.openWritingPipe(pipe);
}

void loop(void)
{

for( int i = 0; i < 10; i++)
//if (digitalRead(SW1) == HIGH)
{
msg[0] = i;
radio.write(msg, 1);

delay(1000);

}
}

The receiver side code

#include <SPI.h>
#include “nRF24L01.h”
#include “RF24.h”

/F24 radio(48,49);
int msg[1];
const uint64_t pipe = 0xE8E8F0F0E1LL;

void setup(void)
{
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(1,pipe);
radio.startListening();
}

void loop(void)
{
if ( radio.available() )
{
// Dump the payloads until we’ve gotten everything
bool done = false;
while (!done)
{
// Fetch the payload, and see if this was the last one.
done = radio.read(msg, 1);
Serial.println(msg[0]);
delay(500);
}
}
else
{
Serial.println(“No radio available”);
}
}

In serial port terminal getting output as
255
255
255

Can anyone pls help?

The old timers (and some newbee-wanna-bes) are gonna jump all over you for 'not using code tags'. Go back and read the how to use the forum stickies and don' be offended when they give you flack.

You need to use an external 3.3V supply for the NRF2400 modules when transmitting. The on board uno 3.3V supply won't give you enough current.