ESPHome
2023.9.1
esphome
esphome
components
safe_mode
button
safe_mode_button.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/ota/ota_component.h
"
5
#include "
esphome/components/button/button.h
"
6
7
namespace
esphome
{
8
namespace
safe_mode {
9
10
class
SafeModeButton
:
public
button::Button
,
public
Component
{
11
public
:
12
void
dump_config
()
override
;
13
void
set_ota
(
ota::OTAComponent
*ota);
14
15
protected
:
16
ota::OTAComponent
*
ota_
;
17
void
press_action
()
override
;
18
};
19
20
}
// namespace safe_mode
21
}
// namespace esphome
esphome::safe_mode::SafeModeButton::set_ota
void set_ota(ota::OTAComponent *ota)
Definition:
safe_mode_button.cpp:11
esphome::safe_mode::SafeModeButton::ota_
ota::OTAComponent * ota_
Definition:
safe_mode_button.h:16
esphome::button::Button
Base class for all buttons.
Definition:
button.h:29
ota_component.h
esphome::Component
Definition:
component.h:67
button.h
esphome::safe_mode::SafeModeButton::press_action
void press_action() override
Definition:
safe_mode_button.cpp:13
esphome::safe_mode::SafeModeButton::dump_config
void dump_config() override
Definition:
safe_mode_button.cpp:22
esphome::safe_mode::SafeModeButton
Definition:
safe_mode_button.h:10
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::ota::OTAComponent
OTAComponent provides a simple way to integrate Over-the-Air updates into your app using ArduinoOTA...
Definition:
ota_component.h:43
Generated by
1.8.13