arduino / reference-en

Editable source for the Arduino Reference
https://www.arduino.cc/reference/en/
Other
165 stars 731 forks source link

feature request: String member readStringUntil() #856

Closed dsyleixa closed 3 years ago

dsyleixa commented 3 years ago

error, exit status 1 'class String' has no member named 'readStringUntil'

per1234 commented 3 years ago

It is a method of the Stream class, not of the String class. So it is documented in the Stream reference: https://www.arduino.cc/reference/en/language/functions/communication/stream/streamreadstringuntil/

dsyleixa commented 3 years ago

yes, I just noticed that by myself (cross-over posted/edited). Nonetheless I would appreciate to have that additionally to substr() or whatever:

String s, str ="123456789abc";; s=str.readStringUntil('a'); Serial.println(s);