Converstion question

Hi Everyone,
And thanks ahead of time, Ok long story short I'm trying to send [4] variables over a nRF24L01 network. Having a hard time structuring how to send the variables to string format and out to the pipe.

2 variables can send int values from -50 to 150
1 variable can send int values from 1 to 20
1 variable sends a 1 or 0

My problem is trying to send them all in one transmission if at all possible but anything more than one gets converted wrong on the receiving end.. Again thanks for any help that may come my way.

2 variables can send int values from -50 to 150
1 variable can send int values from 1 to 20
1 variable sends a 1 or 0

A range of 200 requires more than seven bits.
Let's call it eight bits unsigned, with a bias of -50.

One to twenty requires five bits.
This can be packed into a single byte with the last variable, which requires only a single bit.

So, three bytes total to be transmitted

A single message on an nRF24 can be 32 bytes long so just put your 4 values into an int array and send the array.

Have a look at this Simple nRF24L01+ Tutorial

...R