Crates.io | owfs |
lib.rs | owfs |
version | 0.1.0 |
source | src |
created_at | 2022-06-03 16:18:24.976824 |
updated_at | 2024-05-08 01:21:37.346632 |
description | Rust API for OWFS (1-Wire file system) |
homepage | |
repository | https://github.com/alttch/owfs-rs |
max_upload_size | |
id | 599328 |
size | 15,972 |
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).