I'm using Raspberry Pi and Arduinos for my home automation project where Raspi is controler of Arduino nodes.
I use nRF24 wireless transceiver to communicate these two.

My problem is that when I was sending a structure like following

    struct TempSensorData
    {
        uint32_t result;
        uint32_t temperature;
        uint32_t humidity;
    };
from Raspberry to Raspberry everything went fine but now when I use Arduino as sender I get very strange results:

    received: status: 335544320, temperature: 754974720 degrees, humidity: 0%

while on Raspberry it was

    received: status: 0, temperature: 22 degrees, humidity: 44%

**Can this be a problem with types?** 

Or with different type of architecture (like different sizes on 32bit and 64bit arch)?