ESPHome
2024.11.1
esphome
esphome
components
http_request
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
12
void
HttpRequestComponent::dump_config
() {
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
esphome::http_request::HttpRequestComponent::redirect_limit_
uint16_t redirect_limit_
Definition:
http_request.h:139
esphome::http_request::HttpRequestComponent::timeout_
uint16_t timeout_
Definition:
http_request.h:140
esphome::http_request::HttpRequestComponent::useragent_
const char * useragent_
Definition:
http_request.h:137
esphome::http_request::HttpRequestComponent::watchdog_timeout_
uint32_t watchdog_timeout_
Definition:
http_request.h:141
http_request.h
esphome::http_request::HttpRequestComponent::dump_config
void dump_config() override
Definition:
http_request.cpp:12
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
log.h
esphome::http_request::HttpRequestComponent::follow_redirects_
bool follow_redirects_
Definition:
http_request.h:138
Generated by
1.8.13