Page 1 of 1

The problem to read sensed.byte at ds2408 in PHP

Posted: Mon Jan 28, 2013 8:38 pm
by maloicds
Hi all.
Help to read a property sensed.BYTE at ds2408.
I do

Code: Select all

<?php
  require "/opt/owfs/share/php/OWNet/ownet.php";
  $ow=new OWNet("tcp://localhost:3000");
  $data=$ow->read("29.513308000000/sensed.BYTE");
  echo ($data);
  unset($ow);
 ?>
but $data is empty :( Why?
Other properties are read normally, for example: 29.513308000000/sensed.0.
Thanks in advance!

Re: The problem to read sensed.byte at ds2408 in PHP

Posted: Mon Jan 28, 2013 9:02 pm
by Digit
Empty as in 0 (zero)? That's still a valid reading.. all channels can have the bit set to 0, resulting in a 0 byte value.
But I assume you expected a non-zero value... :wink:

Re: The problem to read sensed.byte at ds2408 in PHP

Posted: Mon Jan 28, 2013 9:31 pm
by maloicds
in property sensed.byte have data and I can not get it through the code