Hello all,
I'm working on a library for NRF24L01+ and PIC micro.
Unfortunately there is something wrong. On the receiver side, the micro correctly detects that a packet has been received, and after I try to read the payload.
This is where it gets strange! I need to add a delay (please see code below) in order to receive correct data, if I omit the delay, the data gets corrupted.
if(bNRFBeeIsDataReady()){
Delay10KTCYx(200);
temp3=u8NRFGetPayloadPipe();
vNRFBeeGetPayload(&stNRFBee);
}
this delay ( Delay10KTCYx(200); ) corresponds to about 160miliseconds, this doesn't seem ok.
Any ideas?
best regards, Mauro,