enum MeasurementTypeEnum
The type of measurement.
-
Unspecified.
Declaration
Swift
case unspecified
-
Voltage in millivolts (mV).
Declaration
Swift
case voltage
-
Active current in milliamps (mA).
Declaration
Swift
case activeCurrent
-
Reactive current in milliamps (mA).
Declaration
Swift
case reactiveCurrent
-
Apparent current in milliamps (mA).
Declaration
Swift
case apparentCurrent
-
Active power in milliwatts (mW).
Declaration
Swift
case activePower
-
Reactive power in millivolt-amps reactive (mVAR).
Declaration
Swift
case reactivePower
-
Apparent power in millivolt-amps (mVA).
Declaration
Swift
case apparentPower
-
RMS voltage in millivolts (mV).
Declaration
Swift
case rmsVoltage
-
RMS current in milliamps (mA).
Declaration
Swift
case rmsCurrent
-
RMS power in milliwatts (mW).
Declaration
Swift
case rmsPower
-
AC frequency in millihertz (mHz).
Declaration
Swift
case frequency
-
Power factor ratio in +/- 1/100ths of a percent.
Declaration
Swift
case powerFactor
-
AC neutral current in milliamps (mA).
Declaration
Swift
case neutralCurrent
-
Electrical energy in milliwatt-hours (mWh).
Declaration
Swift
case electricalEnergy
-
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
rawValue
The raw value to use for the new instance.