I don't exactly have the code yet because I haven't written it, sorry. I guess I could try explaining better? Basically if you see the button code I posted above
if (digitalRead(inPin) == HIGH) {
buttonTimer = millis();
if ((millis() - buttonTimer > longPressTime) {
a<<1;
a + B000001;
}
}
The value of a changes depending on the button being pushed for a long time. The reason why I want the value (which changes) to be sent and not just one byte (which does not change) is because different values (say 1 versus 3 for instance) will trigger different responses on the other end of the transmission (slave Arduino). Each long button press (according to the code above) will increase the value and thus should be able to trigger different responses when transmitted.