Transmitting potentiometerdata from Arduino Nano to to Arduino due with NRF24L01

I am attempting to send the value of a potentiometer from a Nano to a Due. The data received is just "0", I have successfully transmitted characters. The simple "hello world" program works fine. I have read that it might be something to do with the difference in integer byte sizes between the Nano and Due but I don't know how to resolve this.
The data I'm sending is "radio.write(&data, sizeof(data))", where the data is in 3 arrays, one of which contains the pot value.
At the slave (receiver) I read this with "radio.write(&data, sizeof(data))".

I have no problem transmitting between an Uno and a Nano.

Please help. Thanks

You could start by posting both sketches using code tags.

.

I believe the DUE considers an int to be the same as a long on an Uno or Nano so a simple solution may be to change the datatype on the Uno and Nano from int to long.

...R

Unbelievable Robin2. I have been tearing my hair out with this problem for two days. Just tried your solution and it works.

Thanks

Good to hear it worked.

Never lose sight of the fact that, at bottom, computers are very simple things.

...R