esphome-docs/api/switch/restart.rst
2018-05-14 21:15:49 +02:00

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: