Skip to content

Commit c747dbe

Browse files
authored
fix(examples): fix WiFiClock log HTTP error code to serial console by @lboue (#97)
* Update WiFiClock.ino Log HTTP error code to serial console * Update WiFiClock.ino
1 parent 3d1e44c commit c747dbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/SquareLine/v8/WiFiClock/WiFiClock.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ void ParseWeather(String url)
312312
Serial.printf("Weather: %s\n", Weather);
313313
Serial.printf("temperature: %d\n", temperature);
314314
} else {
315-
Serial.printf("ERROR: HTTP_CODE Weather\n");
315+
Serial.printf("ERROR: [ParseWeather] OpenWeather API --> HTTP code %d\n", httpGet);
316316
}
317317
} else {
318318
Serial.printf("ERROR: httpGet Weather\n");
@@ -338,7 +338,7 @@ void Parselatlon(String url)
338338
Serial.printf("lat: %s\n", lat);
339339
Serial.printf("lon: %s\n", lon);
340340
} else {
341-
Serial.printf("ERROR: HTTP_CODE latlon\n");
341+
Serial.printf("ERROR: [Parselatlon] OpenWeather API --> HTTP code %d\n", httpGet);
342342
}
343343
} else {
344344
Serial.printf("ERROR: httpGet latlon\n");

0 commit comments

Comments
 (0)