toByte method
Convert this status into a byte for transmission
Implementation
int toByte() {
int byte = 0;
byte |= frameCount;
//shift over one because theres a reserved space, two for the prevState
byte = byte << 3;
byte |= prevState.value;
byte = byte << 4;
byte |= serverState.value;
return byte;
}