user6827: It's about the RF24 library you can find here. http://maniacbug.github.io/RF24/index.html
I transmit data from one Arduino to another using NRF24L01 radios.
When I use the write-function on the transmitter arduino (joystick is an array) and after that I put in a delay higher then 10, the available function returns false.
Transmitter
radio.write( joystick, sizeof(joystick) );
delay(20);

Receiver
if(!available())
  print('No data'); // delay > 10 --> No data will be printed

Why is it working with a delay of 10 but not above? Has it something to do with timeouts which is mentioned in the docs of the library?: http://maniacbug.github.io/RF24/classRF24.html#a4cd4c198a47704db20b6b5cf0731cd58
Thank you for your answers.

user13686: I had the same problem. My solution is: 
First make .stopListening() 
then .write(&data, sizeof(data)) 
and behind the write command an .startListening(). 
Now you can delay for longer times.

user77818: Try using
unsigned long t = millis();
while(millis() - t < DELAY);

instead of "delay(DELAY)"

user23574: In my situation the issue was with the Transmitter not continuing to transmit after a delay. I was able to resolve the issue using the powerDown (http://maniacbug.github.io/RF24/classRF24.html#aa0a51923a09ba4f3478aba9be0f8a6a1) and powerUp (http://maniacbug.github.io/RF24/classRF24.html#a5cdaf47aa0edd6dca1b9a8bb7972a1a3) functions. Here is a snipet of my code. "radioTx" is the name assigned to my transmitter.
//standard code setup for arduino uno board examples
radioTx.begin();
radioTx.setChannel(108);
radioTx.openWritingPipe(pipe);

}

void loop() {

  int dist_cm = sonar.ping_cm();


  Serial.println(dist_cm);
  radioTx.write(&dist_cm,sizeof(dist_cm));
  radioTx.powerDown();
  delay(5000);
  radioTx.powerUp();

  }


6827: <p>It's about the RF24 library you can find here. <a href="http://maniacbug.github.io/RF24/index.html" rel="nofollow">http://maniacbug.github.io/RF24/index.html</a></p>

<p>I transmit data from one Arduino to another using NRF24L01 radios.
When I use the write-function on the transmitter arduino (joystick is an array) and after that I put in a delay higher then 10, the available function returns false.</p>

<p>Transmitter</p>

<pre><code>radio.write( joystick, sizeof(joystick) );
delay(20);
</code></pre>

<p>Receiver</p>

<pre><code>if(!available())
  print('No data'); // delay &gt; 10 --&gt; No data will be printed
</code></pre>

<p>Why is it working with a delay of 10 but not above? Has it something to do with timeouts which is mentioned in the docs of the library?: <a href="http://maniacbug.github.io/RF24/classRF24.html#a4cd4c198a47704db20b6b5cf0731cd58" rel="nofollow">http://maniacbug.github.io/RF24/classRF24.html#a4cd4c198a47704db20b6b5cf0731cd58</a></p>

<p>Thank you for your answers.</p>
 13686: <p>I had the same problem. My solution is: </p>

<p>First make <code>.stopListening()</code> </p>

<p>then <code>.write(&amp;data, sizeof(data))</code> </p>

<p>and behind the <code>write</code> command an <code>.startListening()</code>. </p>

<p>Now you can delay for longer times.</p>
 77818: <p>Try using</p>
<pre><code>unsigned long t = millis();
while(millis() - t &lt; DELAY);
</code></pre>
<p>instead of &quot;delay(DELAY)&quot;</p>
 23574: <p>In my situation the issue was with the Transmitter not continuing to transmit after a delay. I was able to resolve the issue using the powerDown (<a href="http://maniacbug.github.io/RF24/classRF24.html#aa0a51923a09ba4f3478aba9be0f8a6a1" rel="nofollow">http://maniacbug.github.io/RF24/classRF24.html#aa0a51923a09ba4f3478aba9be0f8a6a1</a>) and powerUp (<a href="http://maniacbug.github.io/RF24/classRF24.html#a5cdaf47aa0edd6dca1b9a8bb7972a1a3" rel="nofollow">http://maniacbug.github.io/RF24/classRF24.html#a5cdaf47aa0edd6dca1b9a8bb7972a1a3</a>) functions. Here is a snipet of my code. "radioTx" is the name assigned to my transmitter.</p>

<pre><code>//standard code setup for arduino uno board examples
radioTx.begin();
radioTx.setChannel(108);
radioTx.openWritingPipe(pipe);

}

void loop() {

  int dist_cm = sonar.ping_cm();


  Serial.println(dist_cm);
  radioTx.write(&amp;dist_cm,sizeof(dist_cm));
  radioTx.powerDown();
  delay(5000);
  radioTx.powerUp();

  }
</code></pre>
