Skip to main content
formatting
Source Link
Jacobm001
  • 11.9k
  • 7
  • 47
  • 57

Use different variable for checking pipe number: Test whether there are bytes available to be read in the FIFO buffers.

Parameters
[out]   pipe_num    Which pipe has the payload available
uint8_t pipeNum;
if(radio.available(&pipeNum)){
  radio.read(&data,sizeof(data));
  Serial.print("Got data on pipe");
  Serial.println(pipeNum);
}
Returns
True if there is a payload available, false if none is
Definition at line 1055 of file RF24.cpp.

Parameters [out] pipe_num Which pipe has the payload available uint8_t pipeNum; if(radio.available(&pipeNum)){ radio.read(&data,sizeof(data)); Serial.print("Got data on pipe"); Serial.println(pipeNum); } Returns True if there is a payload available, false if none is Definition at line 1055 of file RF24.cpp. https://tmrh20.github.io/RF24/classRF24.html#ace7dd139fabc16b77cb8325faa07620f

Use different variable for checking pipe number: Test whether there are bytes available to be read in the FIFO buffers.

Parameters [out] pipe_num Which pipe has the payload available uint8_t pipeNum; if(radio.available(&pipeNum)){ radio.read(&data,sizeof(data)); Serial.print("Got data on pipe"); Serial.println(pipeNum); } Returns True if there is a payload available, false if none is Definition at line 1055 of file RF24.cpp. https://tmrh20.github.io/RF24/classRF24.html#ace7dd139fabc16b77cb8325faa07620f

Use different variable for checking pipe number: Test whether there are bytes available to be read in the FIFO buffers.

Parameters
[out]   pipe_num    Which pipe has the payload available
uint8_t pipeNum;
if(radio.available(&pipeNum)){
  radio.read(&data,sizeof(data));
  Serial.print("Got data on pipe");
  Serial.println(pipeNum);
}
Returns
True if there is a payload available, false if none is
Definition at line 1055 of file RF24.cpp.

https://tmrh20.github.io/RF24/classRF24.html#ace7dd139fabc16b77cb8325faa07620f

Source Link
cvaky
  • 11
  • 1

Use different variable for checking pipe number: Test whether there are bytes available to be read in the FIFO buffers.

Parameters [out] pipe_num Which pipe has the payload available uint8_t pipeNum; if(radio.available(&pipeNum)){ radio.read(&data,sizeof(data)); Serial.print("Got data on pipe"); Serial.println(pipeNum); } Returns True if there is a payload available, false if none is Definition at line 1055 of file RF24.cpp. https://tmrh20.github.io/RF24/classRF24.html#ace7dd139fabc16b77cb8325faa07620f