Serial.readStringCommand(character, buffer, length)
Saves all received characters in a buffer until the specified character is received. This function is ideal to receive serial commands from a terminal or another device.
Parameters
format - character array constant. (e.g “Hello”)
… - Arguments
Returns
Number of bytes written.
Example
Notes
- Most serial terminals require the carrier return “\r” together with the new line feed “\n” to print a new line.