!radio.available() nrf24l01 master and child

I have an arduino + nrf24l01 as node master communicating with two other child nodes (arduino + nrf24l01).

radio.openReadingPipe(1, address[0]);
radio.openReadingPipe(2, address[1]);

Node 1
radio.openReadingPipe(1, address[1]);

Node 2
radio.openReadingPipe(1, address[1]);

I would like in the master to be able to detect the !radio.available() of each one of them separately.

Is there a way to do this?


This may, or may not work, depending on the used addresses.

Use radio.avalable(&pipe),
which puts the pipe number with the available packet into the uint8_t pipe;,
so you can select your pipe specific actions inside the if (radio.avalable(&pipe)) { }.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.