I have used the basic sketch for the RF22 module, and I can push a button on the server and have it print specific stuff on the client radio Arduino. using the basic sketch I am able to Serial.print the incoming data, but cannot figure out how to capture that data into an array for control purposes.
uint8_t buf[RF22_MAX_MESSAGE_LEN];
uint8_t len = sizeof(buf);
if (rf22.waitAvailableTimeout(500))
{
// Should be a message for us now
if (rf22.recv(buf, &len))
{
Serial.print("got reply: ");
Serial.println((char*)buf);
char inData[24] = {
(char*)buf };
}
I tried the char inData[24] = { (char*)buf }; to store the Serial data into an array and got a
invalid conversion from 'char*' to 'char' error