1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Stream::send() (#6979)

This commit is contained in:
david gauchard
2021-03-15 01:36:20 +01:00
committed by GitHub
parent 4cc1472821
commit c720c0d9e8
48 changed files with 2136 additions and 650 deletions

View File

@ -115,9 +115,9 @@ void setup(void) {
// swallow the exact amount matching the full request+content,
// hence the tcp connection cannot be handled anymore by the
// webserver.
#ifdef STREAMTO_API
#ifdef STREAMSEND_API
// we are lucky
client->toWithTimeout(Serial, 500);
client->sendAll(Serial, 500);
#else
auto last = millis();
while ((millis() - last) < 500) {