Android Things Bosch BME280 driver
This driver supports BME280 environmental sensor.
It's based on Adafruit BME280 C library and BMX280 contrib-driver for Android Things.
After observing contrib-drivers 0.4 version providing inconsistent data and not supporting forced mode, I decided to implement my own take for this driver.
- Force mode support.
- Config once and run, with sampling presets.
- Consistent data without sudden humidity spikes or pressure dropouts.
Add this to your project level build.gradle:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Then add this repository as dependency in your app module build.gradle:
dependencies {
implementation 'com.knobtviker:bme280:1.1.0'
}
For a code sample check here but replace any class starting with Bmx280 by BME280 class from this package. Detailed sample application will be provided soon if needed.
- Backport for Bosch BMP280.
- Tests.
- Example app.