Can anyone help me on how to correct my program ? I want to transmit value in string form.
I put this to TX code
struct payload_t
{
String sensor1;
};
..................
At the loop part I put this code
String sensor1 = (String(x) + "," + String(y) + "," + String(z)) ;
In the RX part I put this code
struct payload_t
{
String sensor1;
};
At the loop part
RF24NetworkHeader header;
payload_t payload;
network.read(header,&payload,sizeof(payload));
Serial.println("Sensor1 ");
Serial.println(payload.sensor1);
Below is the Attach picture result of RX code.
Thanks in advance :)