Skip to main content

Hardware Functions

dev.hardware - wire path h - generated from fwMenuHardware.

do_something

Settings.

Wire command: h\s

Returns: none (Ok/Err only)

dev.hardware.do_something() -> Result
ow_status ow_hardware_do_something(ow_device* dev);
dev.hardware().do_something() -> Result<(), OwError>

The C and Rust signatures above are also the WASM guest signatures - the device API surface is identical; only the transport differs (ow_open_wasm(&dev) in C, OneWili::open() in Rust).

dev.hardware.do_something() # check dev.ok