You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the shared pointer to the instance's sensor. Performs sensor configuration with default settings.
device - I2C file name to which the sensor is connected. An example for Jetson Nano and Raspberry Pi is /dev/i2c-1, and for Jetson Xavier NX it is /dev/i2c-8.
address - BMP280 I2C address(default 0x77).
getTemperature()
Returns the temperature in degrees °C.
getHumidity()
Returns the humidity in percentage.
getQfePressure()
Returns the QFE pressure in ppa.
getQnhPressure(double altitude)
Returns the QFE pressure in ppa.
altitude - Altitude of measuring point.
paToHg(float ppa)
Returns the converted pressure value from pascals to millimeters of mercury.
ppa - Pressure obtained by functions getQfePressure and getQnhPressure.