pamoja for TypeScript - v0.2.0
    Preparing search index...

    A Sensirion SCD40 or SCD41 driven over an I2C bus in periodic measurement, a result every five seconds.

    Index
    • get serial(): number | null

      The 48-bit serial number read at initialization, or null before it.

      Returns number | null

    • Asks the part whether a periodic result is waiting, so measure would read at once.

      Returns Promise<boolean>

    • Stops any running measurement, reads the serial number, and starts periodic measurement. Rejects when nothing answers or the serial number fails its checksum.

      Returns Promise<void>

    • Sets the altitude the part corrects its carbon dioxide reading for, in meters.

      Parameters

      • meters: number

      Returns Promise<void>

    • Sets the temperature offset that compensates the part's own warmth, in millidegrees, until power is lost.

      Parameters

      • milliCelsius: number

      Returns Promise<void>

    • Stops periodic measurement, after which the part takes its settings commands.

      Returns Promise<void>