HC-12 wwireless communications between 2 Arduinos: data structuring question

It is working: I had forgotten to switch power on at the receiver :grin:

However:

Question:

Why does this work:

    HC12.print('<');
    HC12.print(val5);
    HC12.print(",B>");

..and this does not work?

    HC12.print('<');
    HC12.print(val5,',');
    HC12.print("B>");

Because you have two items on this line, a number and a character separated by a comma, and Serial.print() can only deal with one item.

HC12.print( val5  ,  ','  );

...R

Robin2:
Because you have two items on this line, a number and a character separated by a comma, and Serial.print() can only deal with one item.

HC12.print( val5  ,  ','  );

...R

Thank you.

One more question, Robin2: this line occurs in your parsing loop:

char * strtokIndx;

I cannot find an explanation for that, what does this line mean or do?

It creates the variable strtokIndx as a pointer to a variable of type char. That is, it can hold the address of a variable of type char.

For more information I suggest you seek out some the hundreds of tutorials about C/C++ pointers

...R