MCPcopy Create free account
hub / github.com/Heltec-Aaron-Lee/WiFi_Kit_series / readStringUntil

Method readStringUntil

libraries/ArduinoOTA/src/ArduinoOTA.cpp:212–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212String ArduinoOTAClass::readStringUntil(char end) {
213 String res = "";
214 int value;
215 while (true) {
216 value = _udp_ota.read();
217 if (value <= 0 || value == end) {
218 return res;
219 }
220 res += (char)value;
221 }
222 return res;
223}
224
225void ArduinoOTAClass::_onRx() {
226 if (_state == OTA_IDLE) {

Callers 4

writeToStreamMethod · 0.45
handleHeaderResponseMethod · 0.45
_parseRequestMethod · 0.45
_parseFormMethod · 0.45

Calls 1

readMethod · 0.45

Tested by

no test coverage detected