esphome-docs/api/switch/restart.rst

26 lines
452 B
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
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");
2018-05-14 21:15:49 +02:00
.. cpp:namespace:: nullptr
2018-05-13 11:37:02 +02:00
See :cpp:func:`Application::make_restart_switch`.
API Reference
-------------
.. cpp:namespace:: nullptr
.. doxygenclass:: switch_::RestartSwitch
:members:
:protected-members:
:undoc-members: