Skip to main content

Struct DigitalPortResult

Represents a change result from a digital port event. Contains a New and an optional Old value which will be null on the first result within an event series.

Assembly: Meadow.Contracts.dll
View Source
public struct DigitalPortResult : IChangeResult<DigitalState>

Implements:
Meadow.IChangeResult<UNIT>

Properties

New

The value at the time of this event or notification.

View Source
public DigitalState New { readonly get; set; }

Old

The previous value before this event or notification, or null if there was no previous value.

View Source
public DigitalState? Old { readonly get; set; }

Delta

The duration of time between the time of this event or notification and the time of the previous occurrence.

View Source
public TimeSpan? Delta { get; }

Implements