Help me about serial communication

Hello! I need to write a code for 2 arduinos one, whou send the number of 4 byte it would be number from 1 - 9999. Can somebody help me with that, because arduino allow to transmit just number to 255 i think. I wanted just simple 2 codes one for sender arduino and one for reciever arduino! Thanks!

Can somebody help me with that, because arduino allow to transmit just number to 255 i think.

Nonsense.

unsigned long value = 554455852547;
Serial.print(value);

http://forum.arduino.cc/index.php?topic=396450.0

unsigned long value = 554455852547;

Serial.print(value);

40 into 32 doesn't go.

Groove:
40 into 32 doesn't go.

You know something? I didn't miss you while you were gone.

Sorry but i a bit dont understand than what u mean with that. I just need that the one arduino from distance get number from 1 - 9999 and send other arduino using RS - 485 module. Is it so dificult, i need very simple 2 codes... Please help, i am begginer with that...

There are two ways to send data - binary and ASCII. You seem to think that you can only send binary data. Even if that was the case, an int is simply two bytes. Send each one. Use highByte() and lowByte() if you don't know how to separate the bytes.

On the other end, receive two bytes, and use bitshifting and addition (or word()) to put them back together.

Or, follow the link I posted to learn how to send and receive the data in ASCII (human-readable) format.

PaulS:
You know something? I didn't miss you while you were gone.

They gave me time-off for good behaviour