Crate owwrite

Crate owwrite 

Source
Expand description

owwriteRust version

§Write a value to owserver ( to a specific 1-wire device file )

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

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

§SYNTAX

owwrite [OPTIONS] PATH VALUE

§OPTIONS

  • -s IP:port (default localhost:4304)
  • `–hex read the value in hexidecimal
  • `–size n write only n bytes
  • `–offset m start writing at byte m
  • -h for full list of options

§PATH

  • 1-wire path to a file
  • No Default

§VALUE

  • Text (a byte string)
  • Hexidecimal bytes ( e.g. 03A3FF is a 3 byte value )
    • upper and lower case a-f allowed
    • no 0x prefix should be used
    • no spaces between bytes

§More than one PATH / VALUE pair allowed

owwrite only works on files.

§USAGE

  • owserver must be running in a network-accessible location
  • owwrite is a command line program
  • errors to stderr

§EXAMPLE

Read, write and reread a temperature high limit

owread /10.67c6697351ff/temphigh
     18.4024
owwrite /10.67c6697351ff/temphigh 45
owread /10.67c6697351ff/temphigh
     45.0

{c} 2025 Paul H Alfille – MIT Licence

Functions§

from_path 🔒
main 🔒