simultaneous/temperature is always returning "0" if value can't be determined right now. I agree it should return a cached value if it hasn't timed out. Perhaps I have some time to fix that tomorrow. BTW: did you see that bug in FS_r_convert() that I fixed... I guess it has been there for a very long time. :)
I was thinking some more about simultaneous reading... How about adding a feature like "echo 10 > simultaneous/temperature_frequency" which automatically send a calculation restart after 10 seconds. That would result into always fresh temperature values even if user doesn't announce that he will read right now. /Christian On Mon, 2005-04-11 at 17:37, Paul Alfille wrote: > On Monday 11 April 2005 10:39 am, Christian Magnusson wrote: > > On Mon, 2005-04-11 at 14:24 +0200, Christian Magnusson wrote: > > > Reading /simultaneous/temperature will fail if any of the /bus.x > > > is a remote server. > > > Reason: /simultaneous/temperature is unknown when > > > /bus.0/simultaneous/temperature = 0 > > > /bus.1/simultaneous/temperature = 1 > > > > Perhaps it should be changed to write-only... or return 0 when it's > > unknown value? It's impossible to set the value in > > /simultaneous/temperature from owhttpd if it returns -EINVAL > > > > Any idea on this? > > > > /Christian > Interesting question. I guess it depends on what reading the > "simultaneous/temperature" is supposed to accomplish. > > My thought was that reading simultaneous/temperature would decide whether to > do it again, or use an existing simultaneous. So returning 0 for an > unknowable answer is certainly safe. > > The other alternative is using the cache system, and returning 1 if the last > "simultaneous" hasn't timed out, else 0. > > Paul > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers