Scd4x Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
CO₂, Humidity, and Temperature sensor SCD4x
[System.Device.Model.Interface("CO₂, Humidity, and Temperature sensor SCD4x")]
public sealed class Scd4x : IDisposable
[<System.Device.Model.Interface("CO₂, Humidity, and Temperature sensor SCD4x")>]
type Scd4x = class
interface IDisposable
Public NotInheritable Class Scd4x
Implements IDisposable
- Inheritance
-
Scd4x
- Attributes
- Implements
Constructors
Scd4x(I2cDevice) |
Instantiates a new Scd4x. |
Fields
DefaultI2cAddress |
The default I²C address of this device. |
Properties
Co2 |
The most recent CO₂ measurement. |
MeasurementPeriod |
The period to wait for each measurement: five seconds. |
RelativeHumidity |
The most recent relative humidity measurement. |
Temperature |
The most recent temperature measurement. |
Methods
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
ReadPeriodicMeasurement() |
Reads the next periodic CO₂, humidity, and temperature measurement from the sensor. |
ReadPeriodicMeasurementAsync(CancellationToken) |
Reads the next periodic CO₂, humidity, and temperature measurement from the sensor. |
Reset() |
Resets the device. |
SetPressureCalibration(Pressure) |
Calibrates the sensor to operate at a specific barometric pressure. |
SetPressureCalibrationAsync(Pressure) |
Calibrates the sensor to operate at a specific barometric pressure. |
StartPeriodicMeasurements() |
Instructs the sensor to start performing periodic measurements. Every period, the length of which is available in MeasurementPeriod, the measurement can then be read via ReadPeriodicMeasurement(). Periodic measurement can be stopped with StopPeriodicMeasurements(). |
StopPeriodicMeasurements() |
Instructs the sensor to stop performing periodic measurements. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for