Number of Bytes in an Array

So I am trying to understand bytes and serial communication and I have posted about Wireless communication before and received some help from that. I am using EasyTransfer to send sensor data from one arduino to another with xbee shields. I was reading up on Easy transfer and it says in the readme that the Struct size may not pass 255 bytes.

So my question (which might sound dumb) is if I combined multiple sensors into one array i.e (Button data, button data 2, potentiometer data,...etc) will that exceed more the 255 bytes. I have mapped them so the reading is smaller than 255?

says in the readme that the Struct size may not pass 255 bytes.

So my question (which might sound dumb) is if I combined multiple sensors into one array i.e (Button data, button data 2, potentiometer data,...etc) will that exceed more the 255 bytes. I have mapped them so the reading is smaller than 255?

The size of the structure or array you have will be determined by the type and number of variables. A byte or char is one byte, an int two bytes, a long or float 4 bytes. It sounds like you have mapped all your individual data items to fit into a byte, but that is probably not necessary.

You can use the Sizeof() operator to let the compiler figure out the number of bytes in the data structure. If I understand your protocol correctly the Sizeof(myData) needs to be less than 255.

http://arduino.cc/en/Reference/Sizeof

Motorscooter: cattledog's given you the right answer, but note that the sizeof() operator is used with a lowercase 's'.