Skip to main content

Wifi Functions

dev.wireless.wifi - wire path w\w - generated from fwMenuWifi.

toggle_events

Enable Wifi Events. Toggle Wifi Event Streaming

Wire command: w\w\r

Returns: none (Ok/Err only)

dev.wireless.wifi.toggle_events() -> Result
ow_status ow_wireless_wifi_toggle_events(ow_device* dev);
dev.wireless().wifi().toggle_events() -> 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.wireless.wifi.toggle_events() # check dev.ok

on_start_access_point

Start Access Point. Starts up Access Point with provided SSID and Password

Wire command: w\w\a

ArgWire type
ssidstring
passwordstring
authmodedecS32
hidessidbool

Returns: none (Ok/Err only)

dev.wireless.wifi.on_start_access_point(ssid: str, password: str, authmode: int, hidessid: bool) -> Result
ow_status ow_wireless_wifi_on_start_access_point(ow_device* dev, const char* ssid, const char* password, int32_t authmode, bool hidessid);
dev.wireless().wifi().on_start_access_point(ssid: &str, password: &str, authmode: i32, hidessid: 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.wireless.wifi.on_start_access_point(ssid, password, authmode, hidessid) # check dev.ok

on_discconect_from_station

Stop Access Point. Turns off Access Point

Wire command: w\w\t

Returns: none (Ok/Err only)

dev.wireless.wifi.on_discconect_from_station() -> Result
ow_status ow_wireless_wifi_on_discconect_from_station(ow_device* dev);
dev.wireless().wifi().on_discconect_from_station() -> 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.wireless.wifi.on_discconect_from_station() # check dev.ok

get_connected_devices

Get Stations connected to AP. Turns off Access Point

Wire command: w\w\g

Returns: none (Ok/Err only)

dev.wireless.wifi.get_connected_devices() -> Result
ow_status ow_wireless_wifi_get_connected_devices(ow_device* dev);
dev.wireless().wifi().get_connected_devices() -> 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.wireless.wifi.get_connected_devices() # check dev.ok

on_connect_to_station

Connect to a Wifi Access Point. Connect to a WAP with provided SSID and Password

Wire command: w\w\c

ArgWire type
ssidstring
passwordstring

Returns: none (Ok/Err only)

dev.wireless.wifi.on_connect_to_station(ssid: str, password: str) -> Result
ow_status ow_wireless_wifi_on_connect_to_station(ow_device* dev, const char* ssid, const char* password);
dev.wireless().wifi().on_connect_to_station(ssid: &str, password: &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.wireless.wifi.on_connect_to_station(ssid, password) # check dev.ok

on_discconect_from_station_2

Disconnect From Wifi Access Point. Disconnect from Wifi Stations

Wire command: w\w\f

Returns: none (Ok/Err only)

dev.wireless.wifi.on_discconect_from_station_2() -> Result
ow_status ow_wireless_wifi_on_discconect_from_station_2(ow_device* dev);
dev.wireless().wifi().on_discconect_from_station_2() -> 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.wireless.wifi.on_discconect_from_station_2() # check dev.ok

on_scan_for_access_points

Scan for Access Points. Scans for available WIFI networks

Wire command: w\w\s

Returns: none (Ok/Err only)

dev.wireless.wifi.on_scan_for_access_points() -> Result
ow_status ow_wireless_wifi_on_scan_for_access_points(ow_device* dev);
dev.wireless().wifi().on_scan_for_access_points() -> 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.wireless.wifi.on_scan_for_access_points() # check dev.ok

on_get_wif_info

Print out Wifi Info. Scans for available Wifi networks

Wire command: w\w\p

Returns: none (Ok/Err only)

dev.wireless.wifi.on_get_wif_info() -> Result
ow_status ow_wireless_wifi_on_get_wif_info(ow_device* dev);
dev.wireless().wifi().on_get_wif_info() -> 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.wireless.wifi.on_get_wif_info() # check dev.ok

wifi_open_settings

Wifi Settings. Opens the Wifi settings menu

Wire command: w\w\e

Returns: none (Ok/Err only)

dev.wireless.wifi.wifi_open_settings() -> Result
ow_status ow_wireless_wifi_wifi_open_settings(ow_device* dev);
dev.wireless().wifi().wifi_open_settings() -> 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.wireless.wifi.wifi_open_settings() # check dev.ok