MistyGro API
C++ API for MistyGro's ESP32 controller based on the Arduino framework
Public Member Functions | List of all members
Relay Class Referenceabstract

Abstract relay class. More...

#include <relay.h>

Inheritance diagram for Relay:
Inheritance graph
[legend]

Public Member Functions

virtual void begin (Switch sw)=0
 
virtual void set (Switch state)=0
 
virtual int get_state ()=0
 
virtual void toggle ()=0
 

Detailed Description

Abstract relay class.

Definition at line 28 of file relay.h.

Member Function Documentation

◆ begin()

virtual void Relay::begin ( Switch  sw)
pure virtual

Implemented in RelayAL, and RelayAH.

◆ get_state()

virtual int Relay::get_state ( )
pure virtual

Implemented in RelayAL, and RelayAH.

◆ set()

virtual void Relay::set ( Switch  state)
pure virtual

Implemented in RelayAL, and RelayAH.

◆ toggle()

virtual void Relay::toggle ( )
pure virtual

Implemented in RelayAL, and RelayAH.


The documentation for this class was generated from the following file: