owphp

DESCRIPTION

owphp is a php extension that provides an interface to OWFS.
owphp is created by swig (http://www.swig.org) which can be easily modified to support other programming languages.

FUNCTIONS


    init( interface )

        interface
            Location of the 1-wire bus:
               "u"    Direct  connection  to  the  1-wire interface on the USB port DS9490
            /dev/ttySx
                Direct connection to a 1-wire interface on the  serial  port DS9097U or DS9097
            Sets the serial port. It should have a LINK, DS9097U or DS9097 (passive adapter)  attached.  The "-d" is implied if two arguments are supplied. The -d and -u options are mutually exclusive.
            -u --usb
                Use the USB adapter (DS9490) as 1-wire bus master. An  optional    number
                1,2,... specifies which adapter to use if more than one is present.
            -t --timeout seconds
                Set the number of seconds that volitile data (measured values like temperature and voltage) should be cached before requerying the BUS.  More stable  values  will be saved ten times longer (switch settings, memory contents). 10 seconds is the default.
            -C --Celsius | -F --Fahrenheit | -K --Kelvin | -R --Rankine
                Temperature scale used for data output. Celsius is the default.
            -f --format f[.]i[[.]c]
                Display format for the 1-wire devices. Each device has a 8byte address, consisting  of  1byte  f amily code, 6 byte I D number, and 1 byte C RC checksum.
                Possible formats are f.i (default, 01.A1B2C3D4E5F6), fi fic f.ic  f.i.c and fi.c
                All formats are accepted as input, but the output will be in the specified format.
            --background | --foreground
                Whether the program releases the console and  runs  in  the  background after evaluating command line options.  background is the default.
            -V --version
                Version of this program and related libraries.

    get( path )

        return NULL on error, or string with value of path

    put( path, value)

        set new value to path

    finish()

        clean resources

Previous page: owtcl man page
Next page: Light - OWNet