Hmm...
owlib is written in C, and needs a fixed data size (string size) for
floating point output. I arbitrarily used 12 characters and the %g printf
format to be most general.
Currently type (floating point, integer...) and certainly precision aren't
part of the ownet messages. If we really want it, I'd create a new ownet
message type (extended_read perhaps) that carried more information about
it's data type.
We are only using 7 of the 2^32 available message types
http://www.owfs.org/index.php?page=owserver-message-types
but any change would still leave issues with backwards compatibility.
Paul Alfille
On 6/28/07, Doug Collinge <[EMAIL PROTECTED]> wrote:
Here is a little patch that seems to fix it. It would actually be nice if
the owlib returned a decimal point on all temperatures, even those with
integer values, and with enough trailing zeroes to indicate the precision of
the measurement.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers