owfs

Crates.ioowfs
lib.rsowfs
version0.1.0
sourcesrc
created_at2022-06-03 16:18:24.976824
updated_at2024-05-08 01:21:37.346632
descriptionRust API for OWFS (1-Wire file system)
homepage
repositoryhttps://github.com/alttch/owfs-rs
max_upload_size
id599328
size15,972
YB (yblokh)

documentation

README

owfs-rs

Rust API for OWFS (1-Wire file system)

Example:

// OWFS guard object, automatically calls `owcapi::OW_finish` on drop
let _og = owfs::init("localhost:4304").unwrap();
let devices = owfs::scan(owfs::ScanOptions::default()).unwrap();
for d in devices {
    dbg!(&d.info());
    if d.attrs().contains(&"PIO.1") {
        d.set("PIO.1", "1").unwrap();
    }
}

Requires libow and libowcapi to be installed on the host. It is also possible to tell the crate to compile the library from source (specify vendored feature).

Commit count: 17

cargo fmt