By having this code on the gateway,
if (radio.receiveDone())//If some packet was received by the radio, wait for all its contents to come trough
{
if (radio.TARGETID == 1)//Check if the packet destination is this radio (NODE 1)
{
//Display a message on the serial monitor showing the packet origin radio NODE number
Serial.print('[');Serial.print(radio.SENDERID, DEC);Serial.print("] ");
you can see here that the radio.SENDERID is used to identify the sender ID node.
So all you have to do is check its content and according to the sender ID the program would act accordingly. Something like this
If (radio.SENDERID = 1)
{
Do this;
}
else if (radio.SENDERID =2)
Do that;
}
Or you could send the node name/function along with the data packet in a struct and simply parse its content on the gateway.
This way I can send from the same node several data types like temperature, humidity, fuel level, whatever.