androidthings / contrib-drivers

Open source peripheral drivers
Apache License 2.0
560 stars 174 forks source link

bmx280 temperature event only when temperature difference above 0.5 °C #109

Closed Schuker closed 5 years ago

Schuker commented 5 years ago

I am using the bmx280 driver and do not want to get each temperature reading. I just want an event, if the temperature difference to the last reported temperature ist above 0.5 °C.

Is this possible or do I have to do this on my SensorEventListener onSensorChanged method?

bojankoma commented 5 years ago

This shouldn't be in the driver itself. You can write your own low pass filter.