Interface IRelay
Electrical switch (usually mechanical) that switches on an isolated circuit
Assembly: Meadow.Contracts.dll
View Source
public interface IRelay
Properties
IsOpen
Gets or sets a value indicating whether the relay is in an open state.
View Source
bool IsOpen { get; set; }
IsClosed
Gets or sets a value indicating whether the relay is in a closed state.
View Source
bool IsClosed { get; set; }
State
Gets or sets the state of the relay.
View Source
RelayState State { get; set; }
Type
Returns relay type.
View Source
RelayType Type { get; }
Methods
Toggle()
Toggles the relay on or off.
View Source
void Toggle()
Events
OnChanged
Event raised after relay state change
View Source
event EventHandler<RelayState> OnChanged
Event Type
System.EventHandler<Meadow.Peripherals.Relays.RelayState>