Ive been using a NRF24L01+ for some days now with an arduino that has been constantly turned on.. Suddenly today the module seems to receive some data that i cannot explain where comes from.
Heres my code
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
const uint64_t pipe = 0xE8E8F0F0E1LL;
RF24 radio(9, 10);
int dataReceived[1];
void setup()
{
Serial.begin(9600);
delay(1000);
Serial.println("Nrf24L01 Receiver Starting");
radio.begin();
radio.openReadingPipe(1,pipe);
radio.startListening();
}
void loop()
{
if ( radio.available() )
{
bool done = false;
while (!done)
{
done = radio.read( dataReceived, sizeof(dataReceived) );
Serial.println(dataReceived[0]);
}
}
}
Above has been working without problems, but now i suddenly get alot of values on my serial monitor
-1
-1
-1
-1
0
-1
-1
-1
-1
-1
-10024
-1
-1
-1
-1
-1
What could be happening? Is it interference or is my module damaged? I havent installed any new wireless devices since this has begun.