io72 value when negative

Gps man2 years ago

We are using 1-wire sensor and getting huge value when the temperature is negative any idea ?

4294967248
4294967251

Anton Tananaev2 years ago

The problem is that we decode values as unsigned because most are, so instead of negative values you get big numbers like that. I believe it should be possible to use computed attributes to convert it to a proper negative values.

Gps man2 years ago

Can you guide how this can be done using computed attributes

Anton Tananaev2 years ago

Unfortunately I don't really know off the top of my head.

Gps man2 years ago

Anybody here can guide on this ?

Deborah2 years ago