ESPHome 2026.2.1
Loading...
Searching...
No Matches
improv_base.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
5
6namespace esphome {
7namespace improv_base {
8
9class ImprovBase {
10 public:
11#if defined(USE_ESP32_IMPROV_NEXT_URL) || defined(USE_IMPROV_SERIAL_NEXT_URL)
12 void set_next_url(const char *next_url) { this->next_url_ = next_url; }
13#endif
14
15 protected:
16#if defined(USE_ESP32_IMPROV_NEXT_URL) || defined(USE_IMPROV_SERIAL_NEXT_URL)
18 size_t get_formatted_next_url_(char *buffer, size_t buffer_size);
19 const char *next_url_{nullptr};
20#endif
21};
22
23} // namespace improv_base
24} // namespace esphome
void set_next_url(const char *next_url)
Definition improv_base.h:12
size_t get_formatted_next_url_(char *buffer, size_t buffer_size)
Format next_url_ into buffer, replacing placeholders. Returns length written.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7