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

add errorToString function

This commit is contained in:
Markus Sattler
2015-12-09 13:01:08 +01:00
parent 1dabac60a9
commit b1e3d2256a
5 changed files with 32 additions and 3 deletions

View File

@ -61,7 +61,7 @@ void loop() {
USE_SERIAL.println(payload);
}
} else {
USE_SERIAL.print("[HTTP] GET... failed, no connection or no HTTP server\n");
USE_SERIAL.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());
}
http.end();