Found these situations with the DS2408. and DS2450
1 - get/read PIO.ALL gives a false if pio.0 is off, Only if pio.0 on
gives true.
2 - The result returned is not the actual PIO,ALL string but an array
with the string, Is this the correct behavior?
3 - When get is True returns a 1 but false returns nothing.
4 - What is the purpose of the options true/false in the get command?
var_dump($ow->get("/29.9D6D04000000/PIO.ALL",OWNET_MSG_READ,true)
array(9) { [0]=> int(0) [1]=> int(15) [2]=> int(15) [3]=> int(258) [4]=>
int(15) [5]=> int(0) ["data"]=> string(15) "0,1,0,0,0,0,0,0"
["data_len"]=> int(15) ["data_php"]=> bool(false) }
$pio = $ow->get("/29.9D6D04000000/PIO.ALL",OWNET_MSG_READ,true)
echo $pio >Array
echo $pio[data] >0,1,0,0,0,0,0,0
var_dump($ow->get("/29.9D6D04000000/PIO.ALL",OWNET_MSG_READ,false)
bool(false)
$pio = $ow->get("/29.9D6D04000000/PIO.ALL",OWNET_MSG_READ,false)
echo $pio >
var dump $pio >bool(false)
var_dump($ow->read("/29.9D6D04000000/PIO.ALL")
bool(false)
$pio = $ow->read("/29.9D6D04000000/PIO.ALL")
echo $pio >
var dump $pio >bool(false)
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers