System Functions
dev.hardware.system - wire path h\a - generated from fwMenuSystem.
enable_battery_stream
Stream Battery Info. Enables or disables streaming of battery info to the host.
Wire command: h\a\o
| Arg | Wire type |
|---|---|
| enable | decS32 |
Returns: none (Ok/Err only)
dev.hardware.system.enable_battery_stream(enable: int) -> Result
ow_status ow_hardware_system_enable_battery_stream(ow_device* dev, int32_t enable);
dev.hardware().system().enable_battery_stream(enable: i32) -> 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.system.enable_battery_stream(enable) # check dev.ok