Hi! I'm having same problems with this:
Code:
sendWholeMsg[1] = (byte)msgindex;
sendWholeMsg[2] = (byte)msgindex >> 8;
sendWholeMsg[3] = (byte)msgindex >> 16;
sendWholeMsg[4] = (byte)msgindex >> 24;
The error when I compile is as stated below:
Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)
I don't understand the error here, is there anything wrong with my codes?
Thanks!