Crate owpresent

Crate owpresent 

Source
Expand description

owpresentRust version

§Does a file exiss (devise exists) on owserver

owpresent is a tool in the 1-wire file system OWFS

This Rust version of owpresent is part of owrust – the Rust language OWFS programs

§SYNTAX

owpresent [OPTIONS] PATH

§PURPOSE

Tell whether a OWFS path is valid

§OPTIONS

  • -s IP:port (default localhost:4304)
  • -h for full list of options

§PATH

  • 1-wire path to a file
  • No Default
  • More than one path can be given

owpresent works on files and directories.

§USAGE

  • owserver must be running in a network-accessible location
  • owpresent is a command line program
  • output to stdout
    • 1 if present
    • 0 if not present
  • errors to stderr

§EXAMPLE

Test presence of a device

owpresent /10.67C6697351FF
1

Test a file

owpresent /10.67C6697351FF/temperature
1

Test a device that isn’t there

owpresent /10.FFFFFFFFFFFF
0

{c} 2025 Paul H Alfille – MIT Licence

Functions§

from_path 🔒
main 🔒