Skip to main content

App Signals

dev.scripting.app_signals - wire path s\i - generated from fwMenuAppSignals.

app_signal_add

Add. Adds an app signal.

Wire command: s\i\a

ArgWire type
namestring

Returns: none (Ok/Err only)

dev.scripting.app_signals.app_signal_add(name: str) -> Result
ow_status ow_scripting_app_signals_app_signal_add(ow_device* dev, const char* name);
dev.scripting().app_signals().app_signal_add(name: &str) -> 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.scripting.app_signals.app_signal_add(name) # check dev.ok

app_signal_remove

Remove. Removes an app signal.

Wire command: s\i\x

ArgWire type
namestring

Returns: none (Ok/Err only)

dev.scripting.app_signals.app_signal_remove(name: str) -> Result
ow_status ow_scripting_app_signals_app_signal_remove(ow_device* dev, const char* name);
dev.scripting().app_signals().app_signal_remove(name: &str) -> 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.scripting.app_signals.app_signal_remove(name) # check dev.ok

app_signal_rename

Rename. Renames an app signal.

Wire command: s\i\r

ArgWire type
namestring
new_namestring

Returns: none (Ok/Err only)

dev.scripting.app_signals.app_signal_rename(name: str, new_name: str) -> Result
ow_status ow_scripting_app_signals_app_signal_rename(ow_device* dev, const char* name, const char* new_name);
dev.scripting().app_signals().app_signal_rename(name: &str, new_name: &str) -> 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.scripting.app_signals.app_signal_rename(name, new_name) # check dev.ok

app_signal_set

Set Value. Sets an app signal value.

Wire command: s\i\s

ArgWire type
namestring
valuefloat

Returns: none (Ok/Err only)

dev.scripting.app_signals.app_signal_set(name: str, value: float) -> Result
ow_status ow_scripting_app_signals_app_signal_set(ow_device* dev, const char* name, double value);
dev.scripting().app_signals().app_signal_set(name: &str, value: f64) -> 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.scripting.app_signals.app_signal_set(name, value) # check dev.ok

app_signal_get

Get Value. Gets an app signal value.

Wire command: s\i\g

ArgWire type
namestring

Returns: name (string), value (float)

dev.scripting.app_signals.app_signal_get(name: str) -> Result
ow_status ow_scripting_app_signals_app_signal_get(ow_device* dev, const char* name, char* name_out, size_t name_out_cap, double* value);
dev.scripting().app_signals().app_signal_get(name: &str) -> Result<(String, f64), 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.scripting.app_signals.app_signal_get(name) # returns value; check dev.ok

app_signal_wave

Apply Wave. Applies wave mode 0-8 (0 off; sine, triangle, square and saw at 0.5/2 Hz).

Wire command: s\i\w

ArgWire type
namestring
wavedecS32

Returns: none (Ok/Err only)

dev.scripting.app_signals.app_signal_wave(name: str, wave: int) -> Result
ow_status ow_scripting_app_signals_app_signal_wave(ow_device* dev, const char* name, int32_t wave);
dev.scripting().app_signals().app_signal_wave(name: &str, wave: 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.scripting.app_signals.app_signal_wave(name, wave) # check dev.ok

app_signal_stream

Stream. Streams every defined app signal; 0 disables streaming.

Wire command: s\i\t

ArgWire type
stream_rate_msdecS32

Returns: none (Ok/Err only)

dev.scripting.app_signals.app_signal_stream(stream_rate_ms: int) -> Result
ow_status ow_scripting_app_signals_app_signal_stream(ow_device* dev, int32_t stream_rate_ms);
dev.scripting().app_signals().app_signal_stream(stream_rate_ms: 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.scripting.app_signals.app_signal_stream(stream_rate_ms) # check dev.ok

Events

Spontaneous frames this menu emits (not command responses). Text events arrive as [*<id> ...] frames (Python: Transport.events; C: ow_poll_text_event; Rust: poll_event -> Event::Text); binary events use the binary API below. The on-device rthon binding does not receive event streams in v1.

appSignal (text)

Streamed app-signal value.

Payload fieldWire type
namestring
valuefloat