You can also run owserver independent;y and use OWNet.pm with syntax like:
use OWNet.pm
my $owserver=OWNet->new(localhost:4304) ;
print $owserver->read('10.024446000800/temperature');
Also using OW the syntax would be:
use OW ;
$var = OW:get('/10.024446000800/temperature');
Paul Alfille
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ben Griffith
Sent: Thursday, February 01, 2007 3:03 PM
To: [email protected]
Subject: Re: [Owfs-developers] efficient reading of values
On 2/1/07, Tim Sailer < [EMAIL PROTECTED]> wrote:
Using straight perl, what is the best way of reading the values from owfs?
A simple open(), or something like
$var=`cat /owfs/10.024446000800/temperature`?
What's the way to do this via OW.pm?
use OW;
$var = OW:get('/owfs/10.024446000800/temperature');
-Ben
THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL
AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND
PROPERLY DISPOSE OF THIS INFORMATION.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers