Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BME280

Hierarchy

  • BME280

Implements

Index

Constructors

constructor

  • Returns BME280

Properties

address

address: any

commands

commands: any

configration

configration: any

ioKeys

ioKeys: string[]

Optional io_csb

io_csb: PeripheralIO

Optional io_sdo

io_sdo: PeripheralIO

keys

keys: string[]

params

params: any

requiredKeys

requiredKeys: string[]

Methods

_readSigned16

  • _readSigned16(value: number): number
  • Parameters

    • value: number

    Returns number

_readSigned8

  • _readSigned8(value: number): number
  • Parameters

    • value: number

    Returns number

applyCalibration

  • applyCalibration(): Promise<void>
  • deprecated

    Returns Promise<void>

applyCalibrationWait

  • applyCalibrationWait(): Promise<void>
  • Returns Promise<void>

calcAltitude

  • calcAltitude(pressure: number, seaPressure?: undefined | number): number
  • Parameters

    • pressure: number
    • Optional seaPressure: undefined | number

    Returns number

calibration_H

  • calibration_H(adc_H: any): any
  • Parameters

    • adc_H: any

    Returns any

calibration_P

  • calibration_P(adc_P: any): any
  • Parameters

    • adc_P: any

    Returns any

calibration_T

  • calibration_T(adc_T: any): number
  • Parameters

    • adc_T: any

    Returns number

config

  • config(): void
  • Returns void

getAllWait

  • getAllWait(): Promise<{ humidity: number; pressure: number; temperature: number }>
  • Returns Promise<{ humidity: number; pressure: number; temperature: number }>

getAltitudeWait

  • getAltitudeWait(): Promise<number>
  • Returns Promise<number>

getData

  • getData(): Promise<number[]>
  • deprecated

    Returns Promise<number[]>

getDataWait

  • getDataWait(): Promise<number[]>
  • Returns Promise<number[]>

getHumdWait

  • getHumdWait(): Promise<number>
  • Returns Promise<number>

getHumidWait

  • getHumidWait(): Promise<number>
  • Returns Promise<number>

getPressureWait

  • getPressureWait(): Promise<number>
  • Returns Promise<number>

getTempWait

  • getTempWait(): Promise<number>
  • Returns Promise<number>

setIIRStrength

  • setIIRStrength(strengh: any): Promise<void>
  • deprecated

    Parameters

    • strengh: any

    Returns Promise<void>

setIIRStrengthWait

  • setIIRStrengthWait(strengh: any): Promise<void>
  • Parameters

    • strengh: any

    Returns Promise<void>

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

write

  • write(data: any): void
  • Parameters

    • data: any

    Returns void

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc