Skip to content

Honor timeout in HTTPClient #6056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
example style
  • Loading branch information
d-a-v committed May 6, 2019
commit a2d5d7cc1f6f3cd27417df7f835cf4cc64222007
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ void loop() {
// read up to 128 byte
int c = stream->readBytes(buff, std::min((size_t)len, sizeof(buff)));
Serial.printf("readBytes: %d\n", c);
if (!c)
if (!c) {
Serial.println("read timeout");
}

// write it to Serial
Serial.write(buff, c);
Expand Down