Code for detecting data available at which pipe when using multiple pipe for communication??

    // check if there is data ready
    uint8_t pipeNr;
    if ( radio.available(&pipeNr) )
        Serial.print("Pipe: ");
  • Thanks but the code is not displaying pipe address rather its showing 1; Can you tell me about uint8_t addressing as in my program I'm using uint64_t addressing . So maybe this can be the reason for the display. – pro165 Apr 3 '16 at 5:41
  • Why uint64_t? Is uint8_t or uint16_t not enough? – Avamander Apr 3 '16 at 11:51
  • pipeNr isn't the pipe-address, but the pipe-index. So the 1 you get means it's the second pipe (as 0 is the first). – Gerben Apr 3 '16 at 18:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.