MCPcopy Create free account
hub / github.com/SmingHub/Sming / readString

Method readString

Sming/Wiring/Stream.cpp:210–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210String Stream::readString(size_t maxLen)
211{
212 String s;
213 int c;
214 while(s.length() < maxLen && (c = timedRead()) >= 0) {
215 s += char(c);
216 }
217 return s;
218}
219
220String Stream::readStringUntil(char terminator)
221{

Callers 3

checkMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 1

lengthMethod · 0.45

Tested by 1

checkMethod · 0.36