|
| void | init (u_int pms_type=0, int pms_rx=PMS_RX, int pms_tx=PMS_TX) |
| | All sensors init. More...
|
| |
|
void | loop () |
| | Main sensors loop. All sensors are read here, please call it on main loop.
|
| |
|
bool | readAllSensors () |
| | Read all sensors but use only one time or use loop() instead. All sensors are read here. Use it carefully, better use sensors.loop()
|
| |
|
bool | isDataReady () |
| | get the sensor status
|
| |
|
void | setSampleTime (int seconds) |
| | set loop time interval for each sensor sample
|
| |
| void | setOnDataCallBack (voidCbFn cb) |
| | Get sensor data. More...
|
| |
| void | setOnErrorCallBack (errorCbFn cb) |
| | Optional callback for get the sensors errors. More...
|
| |
| void | setTemperatureUnit (TEMPUNIT tunit) |
| | set the temperature type unit More...
|
| |
| void | setDebugMode (bool enable) |
| | Optional for increase the debug level. More...
|
| |
| bool | isUARTSensorConfigured () const |
| | UART only: check if the UART sensor is registered. More...
|
| |
| int | getUARTDeviceTypeSelected () const |
| | UART only: get the UART sensor type. See SENSORS enum. Also getDeviceName() More...
|
| |
|
uint16_t | getPM1 () const |
| | get PM1.0 ug/m3 value
|
| |
|
uint16_t | getPM25 () const |
| | get PM2.5 ug/m3 value
|
| |
|
uint16_t | getPM4 () const |
| | get PM4 ug/m3 value
|
| |
|
uint16_t | getPM10 () const |
| | get PM10 ug/m3 value
|
| |
|
uint16_t | getCO2 () const |
| | get CO2 ppm value
|
| |
|
float | getCO2humi () const |
| | get humidity % value of CO2 sensor device
|
| |
|
float | getCO2temp () const |
| | get temperature value from the CO2 sensor device
|
| |
|
float | getTemperature () const |
| | get temperature value from environment sensor
|
| |
|
float | getHumidity () const |
| | get humidity % value of environment sensor
|
| |
|
float | getPressure () const |
| | get Pressure value in hPa
|
| |
|
float | getAltitude () const |
| | get Altitude value in meters
|
| |
|
float | getGas () const |
| | get Gas resistance value of BMP680 sensor
|
| |
|
float | getNH3 () const |
| | get NH3 value in ppm
|
| |
|
float | getCO () const |
| | get CO value in ppm
|
| |
|
float | getNO2 () const |
| | get NO2 value in ppm
|
| |
|
float | getO3 () const |
| | get O3 value in ppm
|
| |
|
float | getVOC () const |
| |
|
float | getNOX () const |
| |
|
float | getVOCI () const |
| |
|
float | getNOXI () const |
| |
| void | enableGeigerSensor (int gpio) |
| | Enable Geiger sensor on specific pin. More...
|
| |
|
float | getNoise () const |
| |
|
float | getNoiseAverage () const |
| |
|
float | getNoisePeak () const |
| |
|
float | getNoiseMin () const |
| |
|
float | getNoiseLegalAverage () const |
| |
|
float | getNoiseLegalMaximum () const |
| |
|
float | getNoiseL90 () const |
| |
|
float | getNoiseLd () const |
| |
|
float | getNoiseLe () const |
| |
|
float | getNoiseLn () const |
| |
|
float | getNoiseLden () const |
| |
|
bool | sendNoiseSensorTime (uint32_t unixTime) |
| |
|
bool | syncNoiseSensorTime () |
| |
|
void | setNoiseSensorTimeSyncInterval (uint32_t intervalMs) |
| |
| uint32_t | getGeigerCPM (void) const |
| | get Geiger count. Tics in the last 60secs More...
|
| |
| float | getGeigerMicroSievertHour (void) const |
| | get Geiger count in uSv/h units More...
|
| |
| void | initTOffset (float offset) |
| | Initialize internal temperature offset to be used on startup. More...
|
| |
| float | getTOffset () const |
| | Get sensorlib actual internal temperature offset. More...
|
| |
| void | setTempOffset (float offset) |
| | Set temperature offset for all temperature sensors. More...
|
| |
| float | getTempOffset () const |
| | Get temperature offset for Sensirion sensors (from internal sensor in SCD4x and SCD30) More...
|
| |
| void | setCO2AltitudeOffset (float altitude) |
| | set CO2 altitude offset (m) More...
|
| |
| void | setSeaLevelPressure (float hpa) |
| | set the sea level pressure (hPa) More...
|
| |
| void | setCO2RecalibrationFactor (int ppmValue) |
| | set CO2 recalibration PPM value (400 to 2000) More...
|
| |
|
void | detectI2COnly (bool enable) |
| | Forced to enable I2C sensors only. Recommended to use only if you are using a I2C sensor and improve the performance.
|
| |
|
String | getLibraryVersion () const |
| | returns the CanAirIO Sensorslib version
|
| |
|
int16_t | getLibraryRevision () const |
| | return the current revision code number
|
| |
| bool | isSensorRegistered (SENSORS sensor) const |
| | Read and check the sensors status on initialization. More...
|
| |
| uint8_t * | getSensorsRegistered () |
| | get the sensor registry for retrieve the sensor names More...
|
| |
|
uint8_t | getSensorsRegisteredCount () const |
| | get device sensors detected count
|
| |
| String | getSensorName (SENSORS sensor) const |
| | get the sensor name More...
|
| |
| SensorGroup | getSensorGroup (SENSORS sensor) const |
| | get the sensor group type More...
|
| |
|
uint8_t | getUnitsRegisteredCount () const |
| | get device sensors units detected count
|
| |
| bool | isUnitRegistered (UNIT unit) const |
| | get the sensor unit status on the registry More...
|
| |
| String | getUnitName (UNIT unit) const |
| | get the sensor unit name More...
|
| |
| String | getUnitSymbol (UNIT unit) const |
| | get the sensor unit symbol More...
|
| |
| UNIT | getNextUnit () |
| | get the next sensor unit available More...
|
| |
| void | resetUnitsRegister () |
| | reset the sensor units registry. More...
|
| |
| void | resetSensorsRegister () |
| | reset the sensor registry. More...
|
| |
| void | resetNextUnit () |
| | reset the next sensor unit counter. More...
|
| |
|
void | resetAllVariables () |
| | reset all library variables (generic sensors units)
|
| |
| float | getUnitValue (UNIT unit) |
| | get the sensor unit value (float) More...
|
| |
| void | printUnitsRegistered (bool debug=false) |
| | print the sensor units names available More...
|
| |
| void | printSensorsRegistered (bool debug=false) |
| | print the sensor names detected More...
|
| |
|
void | startI2C () |
| |
|
|
struct sps_values | val |
| | SPS30 values. Only for Sensirion SPS30 sensor.
|
| |
|
bool | devmode |
| | Debug mode for increase verbose.
|
| |
|
int | sample_time = 10 |
| | Initial sample time for all sensors.
|
| |
|
float | toffset = 0.0 |
| | Temperature offset (for final temp output)
|
| |
|
float | altoffset = 0.0 |
| | Altitude compensation variable.
|
| |
|
float | sealevel = 1013.25 |
| | Sea level pressure (hPa)
|
| |
|
float | hpa = 0.0 |
| | Altitude hpa calculation.
|
| |
|
SPS30 | sps30 |
| | Sensirion dust SPS30 library.
|
| |
|
SensirionI2CSgp41 | sgp41 |
| | Sensirion sgp41 library (Rh, T, Voc, Nox)
|
| |
|
uint8_t | conditioning_s = 10 |
| |
|
VOCGasIndexAlgorithm | vocAlgorithm {1.0f} |
| | Sensirion gas index algorithms for SGP41 raw signal processing.
|
| |
|
NOxGasIndexAlgorithm | noxAlgorithm |
| |
|
bool | i2conly |
| | only detect i2c sensors flag
|
| |
|
AM232X | am2320 |
| | AM2320 object (Humidity and temperature)
|
| |
|
Adafruit_BME280 | bme280 |
| | BME280 object (Humidity, Pressure, Altitude and Temperature)
|
| |
|
Adafruit_BMP280 | bmp280 |
| | BMP280 object (Humidity, Pressure, Altitude and Temperature)
|
| |
|
Adafruit_BME680 | bme680 |
| | BME680 object (Humidity, Gas, IAQ, Pressure, Altitude and Temperature)
|
| |
|
AHTxx | aht10 |
| | AHTXX sensors object.
|
| |
|
Adafruit_SHT31 | sht31 |
| | SHT31 object (Humidity and temperature)
|
| |
|
MHZ19 | mhz19 |
| | Mhz19 object sensor.
|
| |
|
Adafruit_SCD30 | scd30 |
| | SCD30 object sensor.
|
| |
|
CM1106_UART * | cm1106 |
| | CM1106 UART main object sensor.
|
| |
|
CM1106_sensor | cm1106sensor |
| | CM1106 UART main variable.
|
| |
|
CM1106_ABC | abc |
| | CM1106 UART calibration object.
|
| |
|
SFE_PARTICLE_SENSOR | pmGCJA5 |
| | Panasonic SN-GCJA5 object sensor.
|
| |
|
S8_UART * | s8 |
| | SenseAir S8 CO2 object sensor.
|
| |
|
S8_sensor | s8sensor |
| | SenseAir S8 CO2 object sensor.
|
| |
|
SensirionI2CScd4x | scd4x |
| | SCD4x object sensor.
|
| |
|
SensirionI2CSen5x | sen5x |
| |
|
PM1006 * | pm1006 |
| | IKEA Vindriktn object sensor.
|
| |
|
DFRobot_GAS_I2C | dfrCO |
| | DFRobot gravity CO object sensor addr 0x78.
|
| |
|
DFRobot_GAS_I2C | dfrNH3 |
| | DFRobot gravity NH3 object sensor addr 0x7A.
|
| |
|
DFRobot_GAS_I2C | dfrNO2 |
| | DFRobot gravity NO2 object sensor add 0x7B.
|
| |
|
DFRobot_GAS_I2C | dfrO3 |
| | DFRobot gravity O3 object sensor add 0x79.
|
| |
|
GEIGER * | rad |
| | Geiger CAJOE object sensor.
|
| |
|
PMS5003T * | pm5003t |
| | PMS5003T Plantower with T&H of Airgradient.
|
| |
CanAirIO Sensors Manager main class.
- Authors
- @hpsaturn and CanAir.IO contributers