Dear Friends,
I request apologizes about my not very good English.
I'm playing with two Arduinos and two NRF24L01 transceptors. I'm using an Arduino YUN as a master node, and an Arduino Leonardo as a child node.
The leonardo has an DS18b20 temperature sensor, measures the temperature every 10 seconds, and sends it to the Arduino YUN using the NRF24.
I'm using the ManiacBug library for the radio: RF24: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver
The most of the time, all works very well: the temperature is measured, sended to the YUN, and the yun receives it and saves the temperature in a sqlite database.
But sometimes, the yun does not receive the temperature during a variable time period. The function
if ( radio.available(&pipe_num) )
returns false. This can last a few minutes, or many hours. Then, suddenly, the temperatures are received again.
Looking at the serial console on the child side, I can see that when this happens, the return of
bool done = radio.write( s, sizeof(s));
is always 0 or false.
the leonardo sends the temperature every 10 seconds. And the Yun receives the temperature every two seconds (more or less), because the yun does a lot of things and is more busy than the leonardo.
And my newbie question is, why I'm loosing temperatures?
Any help would be apreciated.
Best regards
R. Campos.