ESPHome  2024.7.1
http_request.cpp
Go to the documentation of this file.
1 #include "http_request.h"
2 
3 #include "esphome/core/log.h"
4 
5 #include <cinttypes>
6 
7 namespace esphome {
8 namespace http_request {
9 
10 static const char *const TAG = "http_request";
11 
13  ESP_LOGCONFIG(TAG, "HTTP Request:");
14  ESP_LOGCONFIG(TAG, " Timeout: %ums", this->timeout_);
15  ESP_LOGCONFIG(TAG, " User-Agent: %s", this->useragent_);
16  ESP_LOGCONFIG(TAG, " Follow redirects: %s", YESNO(this->follow_redirects_));
17  ESP_LOGCONFIG(TAG, " Redirect limit: %d", this->redirect_limit_);
18  if (this->watchdog_timeout_ > 0) {
19  ESP_LOGCONFIG(TAG, " Watchdog Timeout: %" PRIu32 "ms", this->watchdog_timeout_);
20  }
21 }
22 
23 } // namespace http_request
24 } // namespace esphome
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7