as I understand transmitter need to looks like this.
Nope.
int var1 = 123456;
int var2 = 654321;
Pay attention to the values that fit in an int. Those do not;
But how to decode it to split it back to two variables?
Depends on how you collect the data on the other end.