Hi!
I'm using owfs with ownet.php module.
There were no problems with owfs 2.7p34.
But after installing 2.7p35...2.8p5, PHP script can't get temperature value
from DS18B20.
I found that ownet.php can read temperature9 and temperature10 properties but
read null for temperature11, temperature12.
But if temp value exists in cache, it works fine for any 28.* property.
I see that Paul changed source code of owserver from 2.7p35.
I've made fix for loop.c (of owserver module) in last version 2.8p5
from
struct timeval tv_long = { 1 , 000000 } ; // 1 second
struct timeval tv_short = { 0 , 500000 } ; // 1/2 second
to
struct timeval tv_long = { 2 , 000000 } ; // 2 second
struct timeval tv_short = { 1 , 000000 } ; // 1 second
and not ownet.php can read uncached temperature normally.
I don't know is it correct fix but it works for me fine.
Paul, if described patch is incorrect, please try to find better solution.
Andrey
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers