EnvironmentMetrics class

Weather station or other environmental metrics

Available extensions

Constructors

EnvironmentMetrics.new({double? temperature, double? relativeHumidity, double? barometricPressure, double? gasResistance, double? voltage, double? current, int? iaq, double? distance, double? lux, double? whiteLux, double? irLux, double? uvLux, int? windDirection, double? windSpeed, double? weight, double? windGust, double? windLull, double? radiation, double? rainfall1h, double? rainfall24h, int? soilMoisture, double? soilTemperature})
factory
EnvironmentMetrics.fromBuffer(List<int> data, [ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY])
factory
EnvironmentMetrics.fromJson(String json, [ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY])
factory

Properties

barometricPressure double
Barometric pressure in hPA measured
getter/setter pair
current double
Current measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
getter/setter pair
distance double
RCWL9620 Doppler Radar Distance Sensor, used for water level detection. Float value in mm.
getter/setter pair
gasResistance double
Gas resistance in MOhm measured
getter/setter pair
hashCode int
Calculates a hash code based on the contents of the protobuf.
no setterinherited
iaq int
relative scale IAQ value as measured by Bosch BME680 . value 0-500. Belongs to Air Quality but is not particle but VOC measurement. Other VOC values can also be put in here.
getter/setter pair
info_ → BuilderInfo
no setter
irLux double
Infrared lux
getter/setter pair
isFrozen bool
Returns true if this message is marked read-only. Otherwise false.
no setterinherited
lux double
VEML7700 high accuracy ambient light(Lux) digital 16-bit resolution sensor.
getter/setter pair
radiation double
Radiation in µR/h
getter/setter pair
rainfall1h double
Rainfall in the last hour in mm
getter/setter pair
rainfall24h double
Rainfall in the last 24 hours in mm
getter/setter pair
relativeHumidity double
Relative humidity percent measured
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
soilMoisture int
Soil moisture measured (% 1-100)
getter/setter pair
soilTemperature double
Soil temperature measured (*C)
getter/setter pair
temperature double
Temperature measured
getter/setter pair
unknownFields → UnknownFieldSet
no setterinherited
uvLux double
Ultraviolet lux
getter/setter pair
voltage double
Voltage measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
getter/setter pair
weight double
Weight in KG
getter/setter pair
whiteLux double
VEML7700 high accuracy white light(irradiance) not calibrated digital 16-bit resolution sensor.
getter/setter pair
windDirection int
Wind direction in degrees 0 degrees = North, 90 = East, etc...
getter/setter pair
windGust double
Wind gust in m/s
getter/setter pair
windLull double
Wind lull in m/s
getter/setter pair
windSpeed double
Wind speed in m/s
getter/setter pair

Methods

addExtension(Extension extension, Object? value) → void
Adds an extension field value to a repeated field.
inherited
check() → void
Throws a StateError if the message has required fields without a value.
inherited
clear() → void
Clears all data that was set in this message.
inherited
clearBarometricPressure() → void
clearCurrent() → void
clearDistance() → void
clearExtension(Extension extension) → void
Clears an extension field and also removes the extension.
inherited
clearField(int tagNumber) → void
Clears the contents of a given field.
inherited
clearGasResistance() → void
clearIaq() → void
clearIrLux() → void
clearLux() → void
clearRadiation() → void
clearRainfall1h() → void
clearRainfall24h() → void
clearRelativeHumidity() → void
clearSoilMoisture() → void
clearSoilTemperature() → void
clearTemperature() → void
clearUvLux() → void
clearVoltage() → void
clearWeight() → void
clearWhiteLux() → void
clearWindDirection() → void
clearWindGust() → void
clearWindLull() → void
clearWindSpeed() → void
clone() EnvironmentMetrics
Creates a deep copy of the fields in this message. (The generated code uses mergeFromMessage.)
copyWith(void updates(EnvironmentMetrics)) EnvironmentMetrics
Apply updates to a copy of this message.
createEmptyInstance() EnvironmentMetrics
Creates an empty instance of the same message type as this.
deepCopy() → T

Available on T, provided by the GeneratedMessageGenericExtensions extension

Returns a writable deep copy of this message.
extensionsAreInitialized() bool
inherited
freeze() → GeneratedMessage
Make this message read-only.
inherited
getDefaultForField(int tagNumber) → dynamic
Returns the default value for the given field.
inherited
getExtension(Extension extension) → dynamic
Returns the value of extension.
inherited
getField(int tagNumber) → dynamic
Returns the value of the field associated with tagNumber, or the default value if it is not set.
inherited
getFieldOrNull(int tagNumber) → dynamic
Returns the value of a field, ignoring any defaults.
inherited
getTagNumber(String fieldName) int?
inherited
hasBarometricPressure() bool
hasCurrent() bool
hasDistance() bool
hasExtension(Extension extension) bool
Returns true if a value of extension is present.
inherited
hasField(int tagNumber) bool
Whether this message has a field associated with tagNumber.
inherited
hasGasResistance() bool
hasIaq() bool
hasIrLux() bool
hasLux() bool
hasRadiation() bool
hasRainfall1h() bool
hasRainfall24h() bool
hasRelativeHumidity() bool
hasRequiredFields() bool
Whether the message has required fields.
inherited
hasSoilMoisture() bool
hasSoilTemperature() bool
hasTemperature() bool
hasUvLux() bool
hasVoltage() bool
hasWeight() bool
hasWhiteLux() bool
hasWindDirection() bool
hasWindGust() bool
hasWindLull() bool
hasWindSpeed() bool
isInitialized() bool
Whether all required fields in the message and embedded messages are set.
inherited
mergeFromBuffer(List<int> input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges serialized protocol buffer data into this message.
inherited
mergeFromCodedBufferReader(CodedBufferReader input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Same as mergeFromBuffer, but takes a CodedBufferReader input.
inherited
mergeFromJson(String data, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from data, a JSON object, encoded as described by GeneratedMessage.writeToJson.
inherited
mergeFromJsonMap(Map<String, dynamic> json, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from a JSON object represented as a Dart map.
inherited
mergeFromMessage(GeneratedMessage other) → void
Merges the contents of the other into this message.
inherited
mergeFromProto3Json(Object? json, {TypeRegistry typeRegistry = const TypeRegistry.empty(), bool ignoreUnknownFields = false, bool supportNamesWithUnderscores = true, bool permissiveEnums = false}) → void
Merges field values from json, a JSON object using proto3 encoding.
inherited
mergeUnknownFields(UnknownFieldSet unknownFieldSet) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(void updates(T)) → T

Available on T, provided by the GeneratedMessageGenericExtensions extension

Apply updates to a copy of this message.
setExtension(Extension extension, Object value) → void
Sets the value of a non-repeated extension field to value.
inherited
setField(int tagNumber, Object value) → void
Sets the value of a field by its tagNumber.
inherited
toBuilder() → GeneratedMessage
Creates a writable, shallow copy of this message.
inherited
toDebugString() String
Returns a String representation of this message.
inherited
toProto3Json({TypeRegistry typeRegistry = const TypeRegistry.empty()}) Object?
Returns an Object representing Proto3 JSON serialization of this.
inherited
toString() String
Returns a String representation of this message.
inherited
writeToBuffer() Uint8List
Serialize the message as the protobuf binary format.
inherited
writeToCodedBufferWriter(CodedBufferWriter output) → void
Same as writeToBuffer, but serializes to the given CodedBufferWriter.
inherited
writeToJson() String
Returns a JSON string that encodes this message.
inherited
writeToJsonMap() Map<String, dynamic>
Returns the JSON encoding of this message as a Dart Map.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited