mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
26 lines
452 B
ReStructuredText
26 lines
452 B
ReStructuredText
Restart Switch
|
|
==============
|
|
|
|
This platform allows you to restart your ESP8266/ESP32 with a simple MQTT message.
|
|
|
|
Example Usage
|
|
-------------
|
|
|
|
.. code-block:: cpp
|
|
|
|
App.make_restart_switch("Livingroom Restart");
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
See :cpp:func:`Application::make_restart_switch`.
|
|
|
|
API Reference
|
|
-------------
|
|
|
|
.. cpp:namespace:: nullptr
|
|
|
|
.. doxygenclass:: switch_::RestartSwitch
|
|
:members:
|
|
:protected-members:
|
|
:undoc-members:
|