ESPHome 2025.10.0-dev
Loading...
Searching...
No Matches
dns_server_esp32_idf.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_ESP_IDF
3
4#include <memory>
8
10
11class DNSServer {
12 public:
13 void start(const network::IPAddress &ip);
14 void stop();
16
17 protected:
18 static constexpr size_t DNS_BUFFER_SIZE = 192;
19
20 std::unique_ptr<socket::Socket> socket_{nullptr};
23};
24
25} // namespace esphome::captive_portal
26
27#endif // USE_ESP_IDF
std::unique_ptr< socket::Socket > socket_
void start(const network::IPAddress &ip)