Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версия | |||
| products:laboratory_iot_c:exp67 [2024/12/16 14:57] – labuser30 | products:laboratory_iot_c:exp67 [2024/12/16 15:00] (текущий) – [Программный код эксперимента] labuser30 | ||
|---|---|---|---|
| Строка 23: | Строка 23: | ||
| if (http.begin(client, | if (http.begin(client, | ||
| - | Serial.print(" | + | Serial.print(" |
| int httpCode = http.GET(); | int httpCode = http.GET(); | ||
| if (httpCode > 0) { | if (httpCode > 0) { | ||
| - | Serial.printf(" | + | Serial.printf(" |
| if (httpCode == HTTP_CODE_OK) { | if (httpCode == HTTP_CODE_OK) { | ||
| String payload = http.getString(); | String payload = http.getString(); | ||
| Serial.println(payload); | Serial.println(payload); | ||
| } else { | } else { | ||
| - | Serial.printf(" | + | Serial.printf(" |
| } | } | ||
| http.end(); | http.end(); | ||