Skip to main content

WILEye Functions

dev.io.wil_eye - wire path i\f - generated from fwMenuWILEye.

take_picture

Take a Picture. Take a picture from WILEye and save its SD card or FREE-WILi's Files system by file name.

Wire command: i\f\t

ArgWire type
destinationdecS32
filenamestring

Returns: none (Ok/Err only)

dev.io.wil_eye.take_picture(destination: int, filename: str) -> Result
ow_status ow_io_wil_eye_take_picture(ow_device* dev, int32_t destination, const char* filename);
dev.io().wil_eye().take_picture(destination: i32, filename: &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.io.wil_eye.take_picture(destination, filename) # check dev.ok

start_recording_video

Start Recording Video. Start recording video from WILEye and save it to SD card by file name

Wire command: i\f\v

ArgWire type
filenamestring

Returns: none (Ok/Err only)

dev.io.wil_eye.start_recording_video(filename: str) -> Result
ow_status ow_io_wil_eye_start_recording_video(ow_device* dev, const char* filename);
dev.io().wil_eye().start_recording_video(filename: &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.io.wil_eye.start_recording_video(filename) # check dev.ok

stop_recording_video

Stop Recording Video. Stop recording video from WILEye

Wire command: i\f\s

Returns: none (Ok/Err only)

dev.io.wil_eye.stop_recording_video() -> Result
ow_status ow_io_wil_eye_stop_recording_video(ow_device* dev);
dev.io().wil_eye().stop_recording_video() -> 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.io.wil_eye.stop_recording_video() # check dev.ok

toggle_ai_detection_stream

Stream AI Detection Events. Stream AI Detection Events from WILEye

Wire command: i\f\a

ArgWire type
ai_stream_modedec

Returns: none (Ok/Err only)

dev.io.wil_eye.toggle_ai_detection_stream(ai_stream_mode: int) -> Result
ow_status ow_io_wil_eye_toggle_ai_detection_stream(ow_device* dev, int32_t ai_stream_mode);
dev.io().wil_eye().toggle_ai_detection_stream(ai_stream_mode: 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.io.wil_eye.toggle_ai_detection_stream(ai_stream_mode) # check dev.ok

set_zoom_level

Set Zoom. Set the zoom level of WILEye

Wire command: i\f\m

ArgWire type
zoomdec

Returns: none (Ok/Err only)

dev.io.wil_eye.set_zoom_level(zoom: int) -> Result
ow_status ow_io_wil_eye_set_zoom_level(ow_device* dev, int32_t zoom);
dev.io().wil_eye().set_zoom_level(zoom: 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.io.wil_eye.set_zoom_level(zoom) # check dev.ok

set_contrast

Set Contrast. Set the contrast level of WILEye

Wire command: i\f\c

ArgWire type
contrastdec

Returns: none (Ok/Err only)

dev.io.wil_eye.set_contrast(contrast: int) -> Result
ow_status ow_io_wil_eye_set_contrast(ow_device* dev, int32_t contrast);
dev.io().wil_eye().set_contrast(contrast: 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.io.wil_eye.set_contrast(contrast) # check dev.ok

set_saturation

Set Saturation. Set the saturation level of WILEye

Wire command: i\f\i

ArgWire type
saturationdec

Returns: none (Ok/Err only)

dev.io.wil_eye.set_saturation(saturation: int) -> Result
ow_status ow_io_wil_eye_set_saturation(ow_device* dev, int32_t saturation);
dev.io().wil_eye().set_saturation(saturation: 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.io.wil_eye.set_saturation(saturation) # check dev.ok

set_brightness

Set Brightness. Set the brightness level of WILEye

Wire command: i\f\b

ArgWire type
brightnessdec

Returns: none (Ok/Err only)

dev.io.wil_eye.set_brightness(brightness: int) -> Result
ow_status ow_io_wil_eye_set_brightness(ow_device* dev, int32_t brightness);
dev.io().wil_eye().set_brightness(brightness: 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.io.wil_eye.set_brightness(brightness) # check dev.ok

set_hue

Set Hue. Set the hue level of WILEye

Wire command: i\f\u

ArgWire type
huedec

Returns: none (Ok/Err only)

dev.io.wil_eye.set_hue(hue: int) -> Result
ow_status ow_io_wil_eye_set_hue(ow_device* dev, int32_t hue);
dev.io().wil_eye().set_hue(hue: 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.io.wil_eye.set_hue(hue) # check dev.ok

set_resolution

Set Resolution. Set the resolution state of WILEye

Wire command: i\f\y

ArgWire type
resolutionstatedec

Returns: none (Ok/Err only)

dev.io.wil_eye.set_resolution(resolutionstate: int) -> Result
ow_status ow_io_wil_eye_set_resolution(ow_device* dev, int32_t resolutionstate);
dev.io().wil_eye().set_resolution(resolutionstate: 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.io.wil_eye.set_resolution(resolutionstate) # check dev.ok

set_flash_state

Enable Disable Flash. Set the flash state of WILEye

Wire command: i\f\l

ArgWire type
flashbool

Returns: none (Ok/Err only)

dev.io.wil_eye.set_flash_state(flash: bool) -> Result
ow_status ow_io_wil_eye_set_flash_state(ow_device* dev, bool flash);
dev.io().wil_eye().set_flash_state(flash: bool) -> 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.io.wil_eye.set_flash_state(flash) # 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.

WILEye (text)

WILEye received AI Detection Data

Payload fieldWire type
data_byteshexbytes