The code for the EDS0065 has the wrong data type for the humidity_hi and
humidity_low thresholds (i8 instead of float8) .  I copied the types used
for the EDS0068 and everything works perfectly.  Before the change the
values weren’t writable - they would revert to zero.  Setting the value
directly from the page.2 string would result in an exponential value in the
display fields.

Here’s my change to the ow_eds.c module in owfs-3.1p0:

383,384c383,384
<       {"EDS0065/threshold/humidity_hi" , PROPERTY_LENGTH_FLOAT, NON_AGGREGATE,
ft_float, fc_stable, FS_r_i8, FS_w_i8, VISIBLE_EDS0065, {.u=
_EDS0064_Hum_hi,}, },
<       {"EDS0065/threshold/humidity_low", PROPERTY_LENGTH_FLOAT, NON_AGGREGATE,
ft_float, fc_stable, FS_r_i8, FS_w_i8, VISIBLE_EDS0065, {.u=
_EDS0064_Hum_lo,}, },
---
>       {"EDS0065/threshold/humidity_hi" , PROPERTY_LENGTH_FLOAT, NON_AGGREGATE,
> ft_float, fc_stable, FS_r_float8, FS_w_float8, VISIBLE_EDS0065, {.u=
> _EDS0064_Hum_hi,}, },
>       {"EDS0065/threshold/humidity_low", PROPERTY_LENGTH_FLOAT, NON_AGGREGATE,
> ft_float, fc_stable, FS_r_float8, FS_w_float8, VISIBLE_EDS0065, {.u=
> _EDS0064_Hum_lo,}, },




--
View this message in context: 
http://owfs-developers.1086194.n5.nabble.com/Bug-in-EDS0065-support-tp11381.html
Sent from the OWFS Developers mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to