| 210 | } |
| 211 | |
| 212 | String 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 | |
| 225 | void ArduinoOTAClass::_onRx() { |
| 226 | if (_state == OTA_IDLE) { |
no test coverage detected