Skip to content

Commit 0440913

Browse files
committed
Add a comment explaining
1 parent 2c58108 commit 0440913

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

InfluxDb.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ boolean Influxdb::write(String data) {
164164
Serial.print(httpResponseCode);
165165

166166
#if defined(ESP32)
167+
// The ESP32 HTTP Lib seems to hang if you call getString if the server has not
168+
// written anything in response.
167169
if (http.getSize() > 0) {
168170
String response = http.getString();
169171
Serial.println(" \"" + response + "\"");

0 commit comments

Comments
 (0)