STMicroelectronics / st-mems-android-linux-sensors-hal

stm mems sensors-hal for Android and Linux platforms.
Apache License 2.0
24 stars 7 forks source link

Add support for reporting temperature in Additional Info #9

Open SikkaTheCoder opened 1 month ago

SikkaTheCoder commented 1 month ago

In API Level 24, the Android Sensor framework added support for additional info. This sub-hal supports "placement" as one of the additional info frames. Can we also add temperature as possible additional info frame?

I imagine this would have to be dependent on the specific MEMS being used, as not all of them an report temperature. Perhaps this can somehow be configured in "SupportedSensors" (there is a "InternalTemperature" sensor object).

Thanks!