ESPHome
2026.5.0
Loading...
Searching...
No Matches
esphome
components
improv_base
improv_base.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
#include "
esphome/core/defines.h
"
5
6
namespace
esphome::improv_base
{
7
8
class
ImprovBase
{
9
public
:
10
#if defined(USE_ESP32_IMPROV_NEXT_URL) || defined(USE_IMPROV_SERIAL_NEXT_URL)
11
void
set_next_url
(
const
char
*next_url) { this->
next_url_
= next_url; }
12
#endif
13
14
protected
:
15
#if defined(USE_ESP32_IMPROV_NEXT_URL) || defined(USE_IMPROV_SERIAL_NEXT_URL)
17
size_t
get_formatted_next_url_
(
char
*buffer,
size_t
buffer_size);
18
const
char
*
next_url_
{
nullptr
};
19
#endif
20
};
21
22
}
// namespace esphome::improv_base
esphome::improv_base::ImprovBase
Definition
improv_base.h:8
esphome::improv_base::ImprovBase::set_next_url
void set_next_url(const char *next_url)
Definition
improv_base.h:11
esphome::improv_base::ImprovBase::get_formatted_next_url_
size_t get_formatted_next_url_(char *buffer, size_t buffer_size)
Format next_url_ into buffer, replacing placeholders. Returns length written.
Definition
improv_base.cpp:27
esphome::improv_base::ImprovBase::next_url_
const char * next_url_
Definition
improv_base.h:18
defines.h
esphome::improv_base
Definition
improv_base.cpp:8
Generated by
1.12.0