2019-11-09 18:37:52 +01:00
|
|
|
#include "http_request.h"
|
2024-06-09 22:15:29 +02:00
|
|
|
|
2019-11-09 18:37:52 +01:00
|
|
|
#include "esphome/core/log.h"
|
2024-06-09 22:15:29 +02:00
|
|
|
|
|
|
|
#include <cinttypes>
|
2019-11-09 18:37:52 +01:00
|
|
|
|
|
|
|
namespace esphome {
|
|
|
|
namespace http_request {
|
|
|
|
|
2021-06-10 22:19:44 +02:00
|
|
|
static const char *const TAG = "http_request";
|
2019-11-09 18:37:52 +01:00
|
|
|
|
|
|
|
void HttpRequestComponent::dump_config() {
|
|
|
|
ESP_LOGCONFIG(TAG, "HTTP Request:");
|
|
|
|
ESP_LOGCONFIG(TAG, " Timeout: %ums", this->timeout_);
|
|
|
|
ESP_LOGCONFIG(TAG, " User-Agent: %s", this->useragent_);
|
2024-06-09 22:15:29 +02:00
|
|
|
ESP_LOGCONFIG(TAG, " Follow redirects: %s", YESNO(this->follow_redirects_));
|
2022-01-25 09:53:22 +01:00
|
|
|
ESP_LOGCONFIG(TAG, " Redirect limit: %d", this->redirect_limit_);
|
2024-06-09 22:15:29 +02:00
|
|
|
if (this->watchdog_timeout_ > 0) {
|
|
|
|
ESP_LOGCONFIG(TAG, " Watchdog Timeout: %" PRIu32 "ms", this->watchdog_timeout_);
|
2019-11-09 18:37:52 +01:00
|
|
|
}
|
2020-05-01 04:05:11 +02:00
|
|
|
}
|
2020-03-12 01:27:05 +01:00
|
|
|
|
2019-11-09 18:37:52 +01:00
|
|
|
} // namespace http_request
|
|
|
|
} // namespace esphome
|