progress with arduino + nRF24L01+

hello there,

well i m working on a project that includes communication between two nRF24L01+ modules from sparkfun. both modules are interfaced with arduino boards seperately. i got a few codes from the forum and modified into something i can use..

the code for the transmitting end:

#include <Spi.h>
#include <mirf.h>
#include <nRF24L01.h>

// constants won't change. They're used here to 
// set pin numbers:
const int switchPin = 2;     // the number of the pushbutton pin
const int ledPin =  7;      // the number of the LED pin

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup(){
  Serial.begin(9600);
  Mirf.init();
  Mirf.setRADDR((byte *)"clie1");
  Mirf.config();
  Mirf.payload = sizeof(int);

  // initialize the LED pin as an INPUT:
  pinMode(ledPin, INPUT);      
  // initialize the switch pin as an output:
  pinMode(switchPin, OUTPUT);
}

void loop(){

   digitalWrite(switchPin, HIGH);

  // read the state of the pushbutton value:
  buttonState = digitalRead(ledPin);

  if (buttonState == LOW) {     
    
    
  //byte data[Mirf.payload];
  Mirf.setTADDR((byte *)"serv1");
  
  Mirf.send((byte *)"hello");
  
  while(Mirf.isSending()){
  }
  Serial.println("Finished sending");
  delay(10);
  
  } 
 // else {
    // turn LED off:
    //digitalWrite(ledPin, LOW); 
 // }

  
}

the receiving end:

#include <Spi.h>
#include <mirf.h>
#include <nRF24L01.h>

const int ledPin =  13;      // the number of the LED pin

void setup(){
  Serial.begin(9600);
  Mirf.init();
  Mirf.setRADDR((byte *)"serv1");
  Mirf.config();
  Mirf.payload = sizeof(int);
  pinMode(ledPin, OUTPUT);      

}

void loop(){
  byte data[Mirf.payload];

  if(Mirf.dataReady()){
    
    do{
      
    
      Mirf.getData(data);
      
      Serial.println(data[0]);
      
      Serial.println("Got packet");

      digitalWrite(ledPin, HIGH);

      
    }while(!Mirf.rxFifoEmpty());
  }
}

well the problem is, the sending end is alryte, is working as i want it...

its the receiving end that has the problem... there has been no reactiong on the receiving end...

is there anything im doing wrong? please do help me out here... thank you very much...

doesnt anyone have any suggestions in this topic?

well i have a pic18 code which is working supposedly... but i m not sure how to convert it to arduino code...

please help.. thanx...