Re: [RFC] Issues with Zephyr Sensors API and ways to resolve them

Paul Sokolovsky


On Fri, 26 Jan 2018 16:07:59 +0200
Paul Sokolovsky <> wrote:

Hello Anas,

On Fri, 26 Jan 2018 00:36:17 +0000
"Nashif, Anas" <> wrote:

I am fine with humidity unit change and now that I see the original
author’s reply I am more comfortable with this.\
Thanks, that sounds reassuring. I'll collect evidence on millimeter
-> meter switchover then ;-).
As a follow-up, the arguments for millimeter -> meter switchover were
posted at ,
followed by PR,
which is together with an earlier, by now have
been approved and merged.

So, I'd like to take another change to draw attentions that these are
backward-incompatible changes, but emphasize again that the reason
they're being made is to catch a chance to do that until this API is
widely used, and make sure that the LTS release (1.12 planned AFAIK)
has a clean, consistent, and confusion-free API.

The proposal to make changes to "struct sensor_value"
( didn't
receive any feedback, so apparently nothing should be done to it. My
plan is to add documentation to disambiguate its usage (in 1.11
timeframe), then as time permits, add a function which converts struct
sensor_value to a string without relying on floating-point arithmetics.

Paul | Open source software for ARM SoCs
Follow Linaro:!/linaroorg -

Join to automatically receive all group messages.