Skip to main content

Interface IRelay

Electrical switch (usually mechanical) that switches on an isolated circuit

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface IRelay

Properties

IsOpen

Gets or sets a value indicating whether the relay is in an open state.

View Source
Declaration
bool IsOpen { get; set; }

IsClosed

Gets or sets a value indicating whether the relay is in a closed state.

View Source
Declaration
bool IsClosed { get; set; }

State

Gets or sets the state of the relay.

View Source
Declaration
RelayState State { get; set; }

Type

Returns relay type.

View Source
Declaration
RelayType Type { get; }

Methods

Toggle()

Toggles the relay on or off.

View Source
Declaration
void Toggle()

Events

OnChanged

Event raised after relay state change

View Source
Declaration
event EventHandler<RelayState> OnChanged
Event Type

System.EventHandler<Meadow.Peripherals.Relays.RelayState>