E.getTemperature() results when below zero #678
Replies: 3 comments
-
Posted at 2017-01-10 by @gfwilliams How exactly did you report the temperature back? Looking at the code, it seems like it should work (or if it breaks it should return something other than 255) - my guess is that |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-10 by Eric It is the very basic code you published for the Puck.js:
Perhaps I need to parse the results in node-red but its returning an unsigned int (I think) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-11 by @gfwilliams Ahh - you're using EspruinoHub? It's entirely likely that EspruinoHub isn't doing be doing the conversion from unsigned to signed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-01-10 by Eric
I am logging temperatures using the E.getTemperature() function in a Puck and one night I read back values of 255C which on a very cold night assumed that it was actually -1.
Should we be doing anything to sign the results to allow temperatures below zero?
Beta Was this translation helpful? Give feedback.
All reactions