enum StateEnumThe state of the electric vehicle.
-
The electric vehicle is not plugged in.
Declaration
Swift
case notPluggedIn -
The electric vehicle is plugged in and is not demanding current.
Declaration
Swift
case pluggedInNoDemand -
The electric vehicle is plugged in and is demanding current, but the EVSE is not allowing current to flow.
Declaration
Swift
case pluggedInDemand -
The electric vehicle is plugged in, charging is in progress, and current is flowing.
Declaration
Swift
case pluggedInCharging -
The electric vehicle is plugged in, discharging is in progress, and current is flowing.
Declaration
Swift
case pluggedInDischarging -
The electric vehicle is transitioning from any plugged-in state to
NotPluggedIn.Declaration
Swift
case sessionEnding -
The EVSE has detected a fault. See the
faultStateattribute for more information.Declaration
Swift
case fault -
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: UInt64)Parameters
rawValueThe raw value to use for the new instance.