MOSHAYEDI:
i check your solution but it didn't work
"It didn't work" is useless statement. It provides no information with which to help you.
I think you need to change your code so that the wireless call is outside the FOR loop - like this
void loop(){
for (i = 0; i < 20; i = i + 1) {
data[i]=myArray1[i];
data[i]=myArray2[i];
}
radio.write(data,sizeof(data));
delay(5000);
}
Also, as you want to change the data in the array called data[] you should not make it constant.
And this piece of code
data[i]=myArray1[i];
data[i]=myArray2[i];
does exactly the same thing as this
data[i]=myArray2[i];
Can you see why?
...R