Michael,
Tonight i had a real World test. Temperature dropped bellow 0.
Hat one Sensor with int and one with unsigned int.
The one with int went flad at 0 degrees.
So type matters, like i though.
Direct conversion doesnt show Same result as from Byte.
Guess we need to get a Statement from devolopers.
Regards,
Markus
HYT 939(HYTxxx) Accurate temperature and humidity I2C sensor
-
- Posts: 39
- Joined: 12 Aug 2016 12:08
Re: HYT 939(HYTxxx) Accurate temperature and humidity I2C se
Hi,
of course not all types are good for all values - it was only an example
I will test it some later with other sensor, just made Honeywell sensor function for Z-Uno.
Will tell you some later.
Michael
of course not all types are good for all values - it was only an example
I will test it some later with other sensor, just made Honeywell sensor function for Z-Uno.
Will tell you some later.
Michael
Re: HYT 939(HYTxxx) Accurate temperature and humidity I2C se
ok,... have checked - and developers confirm it.
temperature value should be (signed) integer.
And the getter function like this
Other things are compiler "issues" - may work or not.
I see negative temperature values in Z-Way using the Honeywell sensor.
Michael
temperature value should be (signed) integer.
And the getter function like this
Code: Select all
int getterTemp1(void) {
return temperature1;
}
I see negative temperature values in Z-Way using the Honeywell sensor.
Michael
-
- Posts: 39
- Joined: 12 Aug 2016 12:08
Re: HYT 939(HYTxxx) Accurate temperature and humidity I2C se
OK, Loks like signed - signed and unsigned -unsigned works, but not a combination of them.
I am out of contry and can only test on the weekend.
Regards,
Markus
I am out of contry and can only test on the weekend.
Regards,
Markus
-
- Posts: 39
- Joined: 12 Aug 2016 12:08
Re: HYT 939(HYTxxx) Accurate temperature and humidity I2C se
Tested int for variable and int for getter over the weekend.
This combination doesn't work either.
Seems like getter requires an unsigned variable not as described in documentation signed!
Getter in all examples is correctly unsigned, but some of the temperature examples use signed variables for the temperature.
Based on my own testing I guess they might only work down to 0°
Would be great if we get this confirmed and all examples updated.
This combination doesn't work either.
Seems like getter requires an unsigned variable not as described in documentation signed!
Getter in all examples is correctly unsigned, but some of the temperature examples use signed variables for the temperature.
Based on my own testing I guess they might only work down to 0°
Would be great if we get this confirmed and all examples updated.