Skip to content

Class espos::devices::SmartSwitch

ClassList > espos > devices > SmartSwitch

  • #include <espos_devices/switches.hpp>

Public Functions

Type Name
SmartSwitch (espos::flow::Graph & g, const SmartSwitchConfig & cfg)
espos::flow::Consumer< bool > & input ()
esp_err_t open_error () const
espos::sk::Output< bool > & output ()
espos::sk::PutHandler< bool > & put ()
espos::sensors::GpioOutput & relay ()
bool state () const

Public Functions Documentation

function SmartSwitch

inline espos::devices::SmartSwitch::SmartSwitch (
    espos::flow::Graph & g,
    const SmartSwitchConfig & cfg
) 

function input

inline espos::flow::Consumer < bool > & espos::devices::SmartSwitch::input () 

function open_error

inline esp_err_t espos::devices::SmartSwitch::open_error () const

function output

inline espos::sk::Output < bool > & espos::devices::SmartSwitch::output () 

function put

inline espos::sk::PutHandler < bool > & espos::devices::SmartSwitch::put () 

function relay

inline espos::sensors::GpioOutput & espos::devices::SmartSwitch::relay () 

function state

inline bool espos::devices::SmartSwitch::state () const


The documentation for this class was generated from the following file espos_devices/include/espos_devices/switches.hpp