The problem to read sensed.byte at ds2408 in PHP

Forum about 1-Wire devices.
Post Reply
maloicds
Starting Member
Starting Member
Posts: 2
Joined: Mon Jan 28, 2013 8:23 pm
Location: Moscow

The problem to read sensed.byte at ds2408 in PHP

Post 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!
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

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

Post 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:
maloicds
Starting Member
Starting Member
Posts: 2
Joined: Mon Jan 28, 2013 8:23 pm
Location: Moscow

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

Post by maloicds »

in property sensed.byte have data and I can not get it through the code
Post Reply

Return to “1-Wire Forum”