I\'m using two Arduinos to sent plain text strings to each other using newsoftserial and an RF transceiver.
Each string is perhaps 20-30 characters in length. How do
Use string append operator on the serial.read(). It works better than string.concat()
char r;
string mystring = "";
while(serial.available())
{
r = serial.read();
mystring = mystring + r;
}
After you are done saving the stream in a string(mystring, in this case), use SubString functions to extract what you are looking for.