This should be
if (!radio.write( &data, sizeof(data) )) {
Reading from the chip while nothing is available is quite strange also.
The receiver will never reply, so what are you waiting for?
I think you should rethink your whole strategy.
This should be
if (!radio.write( &data, sizeof(data) )) {
Reading from the chip while nothing is available is quite strange also.
The receiver will never reply, so what are you waiting for?
I think you should rethink your whole strategy.