The problem to read sensed.byte at ds2408 in PHP

Forum about 1-Wire devices.

The problem to read sensed.byte at ds2408 in PHP

Postby maloicds » Mon Jan 28, 2013 7:38 pm

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!
maloicds
Starting Member
Starting Member
 
Posts: 2
Joined: January 2013
Location: Moscow

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

Postby Digit » Mon Jan 28, 2013 8:02 pm

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:
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

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

Postby maloicds » Mon Jan 28, 2013 8:31 pm

in property sensed.byte have data and I can not get it through the code
maloicds
Starting Member
Starting Member
 
Posts: 2
Joined: January 2013
Location: Moscow


Return to 1-Wire Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron