SHT31 class
Sensirion SHT31 temperature and humidity sensor with a high accuracy.
See for more
Constructors
- SHT31(I2C i2c, [int i2cAddress = sht31DefaultI2Caddress])
- Creates a SHT31 sensor instance that uses the i2c bus with the optional i2cAddress.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- i2c → I2C
-
final
- i2cAddress → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getSerialNumber(
) → int - Returns the serial number of the sensor.
-
getStatus(
) → int - Returns the status of the sensor.
-
getValues(
) → SHT31result -
heater(
bool heater) → void - Enables or disables the heater on the sensor to heat/evaporate any condensation. This command can destroy the sensor, if the heater runs too long.
-
isHeaterOn(
) → bool - Checks if the heater is on.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets the sensor.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited