Nrf24l01 network send same data to 2 nodes

Hello,
I have 3 Nrf24l01: transmitter (node011), repeater and receiver (node01), receiver (node0).
How can I send same data from node011 to node01 and node0?
What I've tried:
In node011:

network.update();
RF24NetworkHeader header(/*to node*/ node0);

In node01:

RF24NetworkHeader header;
network.read(header, &data, sizeof(data));

In node0:

RF24NetworkHeader header;
network.read(header, &data, sizeof(data));

In this configuration node01 has no data to read so it just sends the data from node011 to node0. How can I construct the header so node011 sends only once and both node01 and node0 have the same data to read?
What I want in the end is to make the repeater more useful and not to only extend the range.

I have used nRF24 modules but I have not needed to use the network library. Do you really need it?

If all three Arduinos are within range of each other then you don't.

...R
Simple nRF24L01+ Tutorial

Hello,
Thank you for your reply!
Node0 does not "see" node011 (out of range). That is why I need a repeater.

Does the TMRh20 network library come with an example?

Does the example work if you use it with NO changes?

...R

The TMRh20 network library comes with example files. It works without problems.
If I try to send data to both nodes using:

 network.update();
RF24NetworkHeader header(/*to node*/ node0);
network.write(header, &data, sizeof(data));
network.update();
RF24NetworkHeader header(/*to node*/ node1);
network.write(header, &data, sizeof(data));

I get an error compiling: exit status 1
redeclaration of 'RF24NetworkHeader header'

The only way I found to send data to both nodes is this:

void loop()
{
    senda();
    sendb();
}
void senda()
{
network.update();
RF24NetworkHeader header(/*to node*/ node0);
network.write(header, &data, sizeof(data));
}

void sendb()
{
network.update();
RF24NetworkHeader header(/*to node*/ node1);
network.write(header, &data, sizeof(data));
}

It works but it sends twice and the data may not be the same.

I've also tried:

RF24NetworkHeader header(/*to node*/ node1,node0);

but it just ignores the second node.

Magicool:
The TMRh20 network library comes with example files. It works without problems.
If I try to send data to both nodes using:
[...]
I get an error compiling: exit status 1

Sorry. I'm confused. On the one hand you say it works without problems but then you say you get a compiling error.

I'm guessing that is because you changed the code.

Stick with the working code for a moment and tell us exactly what you can do with that and what you want it to do that is different.

...R

Yes the example from the library works, but it sends the data to the end node only, passing it through repeaters. The repeaters do not read/process the data, they only pass it to the next node. I gave some examples of how the original example from the library works and the workaround I use for better understanding of the problem: how to send the same data once and read/process it on both nodes.
If someone has experience with Rf24network please help!

Magicool:
Yes the example from the library works, but it sends the data to the end node only, passing it through repeaters.

What happens if you send the same message a second time but addressed to the middle node?

Perhaps what you really want to happen is for ArduinoA to send a message to ArduinoB and for ArduinoB to send the message on to ArduinoC and then act on the message itself. If that's the case then it could be accomplished without the Network library. Or perhaps it could be implemented in that same style with the Network library.

...R