/* Jeremy Witmer Tim Porter Message types used by RemoteMote and BaseMote */ enum { BUFFER_SIZE = 13 }; /* Max size for this struct is 29 bytes. each int16 is 2 bytes. The array of signal data is indexed by mote ID, that is, the signal value for mote 0 is in slot 0, etc. This allows us to have up to 13 motes in the network. */ struct SignalMsg { uint16_t sourceMoteID; uint16_t sigdata[BUFFER_SIZE]; }; struct StrengthMsg { uint16_t sourceMoteID; }; enum { AM_SIGNALMSG = 12, AM_STRENGTHMSG = 20 }; uint16_t BASEMOTE_ADDR = 0;