i want to send data from 1 arduino and receive it on 2nd and send from 2nd arduino and receive it on 1
like a bidirectional communication
but in my code its only transmitting from one and receiving on another
2nd one is not working as transmitter
The approach in the second example is probably the simplest.
Not that it is technically impossible to send and receive at the same time. However the nRF24 is so fast that the communication should appear simultaneous to a human.