I have very basic level understanding of programming, i can do easy things, but i am now working on a wireless project that calls for taking three integers, and combining them into one byte. This will be transmitted wirelessly to another microprocessor which then receives the byte, and turns that back into three integers for function control. I am basically wanting to control some lighting using relay and a wireless remote.
I have read up on pointers, and the uint8_t, and Char*. i kinda get what it is saying but it is still beyond my comprehension.
// this is on the remote control processor
int a = 1;
int b = 1;
int c = 1;
uint8_t data = "combine the three integers here into a byte";
rf22.send(data, sizeof(data)); //<-- does this need to be modified?
// here is the code for the server side
// Should be a message for us now
uint8_t len = sizeof(buf);
// the above is the code that came with the example hello world. I would like to take the three integers and extract them back into
// three separate bytes i can use for controlling the server functions.
I have been able to write code for controlling the microprocessor through a web page, but I am having no luck here. I would be willing to pay a small amount of money for help as well. Thanks