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