Hello, i have a problem on the receiver of a RF24L1, even though i not send anything it seems it receive always a lot of 0. This is the code:
const uint64_t pipe = 0xE8E8F0F0E1LL; // Definisce il canale di trasmissione
RF24 radio(CE_PIN, CSN_PIN); // Stabilisce la comunicazione
int datatoreceive[1];
void setup()
{
delay(1000);
Serial.begin(9600);
radio.begin();
radio.openReadingPipe(1,pipe);
radio.startListening();
}
void loop()
{
if ( radio.available() )
{
radio.read( datatoreceive, sizeof(datatoreceive) );
Serial.print("Data received: ");
Serial.println(datatoreceive[0]);
}
}