Table of Contents

Name

Owtcl - OWFS library access commands for Tcl

Synopsis

package require ow

::OW::init interface ?interface ...? ?options?
::OW::finish
::OW::get ?path? ?options?
::OW::put path ?value?
::OW::isdirectory path
::OW::isdir path

Description

owtcl

owtcl (3) is a Tcl extension that provides an interface to OWFS. The underlying interface to the 1-wire bus is identical to owfs (1) (filesystem view) and owhttpd (1) web server interface. Only the top layer has been modified to return native Tcl data.

Low-level Commands

The following low-level commands are possible:
::OW::init interface ?interface ...? ?options?
Connect to 1-wire adapter or owserver. interface and options defines a way of connection to the 1-wire bus.

The full set of initialization options is extensive. They correspond roughly to the command line options of ,B owfs (1) owhttpd (1) and owftpd (1)

::OW::finish
Close connection to 1-wire bus or owserver.

::OW::get ?path? ?-list?
Returns contents of OWFS directory as the list if path contains name OWFS directory. If path is name of OWFS file, returns of contents of this file. For files *.ALL returns a values list. If path is not defined, contents of root OWFS directory come back.

::OW::put path ?value?
Puts value in OWFS file indicated in path. For files *.ALL use a value list. If /fIvalue is not defined, puts a empty string.

::OW::isdirectory path
If path is the directory - return 1. Otherwise return 0.

::OW::isdir path
Synonym of ::OW::isdirectory

See Also

Availability

http://www.owfs.org

Author

Serg Oskin (serg@oskin.ru)


Table of Contents