Skip to content

04. Network

Edgaras Janušauskas edited this page Oct 6, 2023 · 10 revisions

This module serves as an interface for accessing the network functionality.

Properties

sta_ssid

cyberos.network.sta_ssid

Retrieves the SSID of the client's Wi-Fi access point.

sta_key

cyberos.network.sta_key

Retrieves the password of the client's Wi-Fi access point.

sta_reconnect

cyberos.network.sta_reconnect

Enables automatic reconnection to the last saved Wi-Fi access point once the STA_IF (Station Interface) is active.

sta_reconnects

cyberos.network.sta_reconnects

Specifies the number of reconnection attempts to make when the Wi-Fi connection is lost (an integer, where 0 means none, and -1 means unlimited).

sta_hostname

cyberos.network.sta_hostname

Gets the hostname of the station interface.

ap_ssid

cyberos.network.ap_ssid

Retrieves the SSID of the CYBERWARE Access Point (AP), for example, "BUTTON-02AD9A-YYG".

ap_key

cyberos.network.ap_key

Retrieves the password for the CYBERWARE AP.

ap_color

cyberos.network.ap_color

Retrieves the color settings for the CYBERWARE AP as a tuple, e.g., ((255, 255, 0), (255, 255, 0), (0, 255, 0)).

ap_color_code

cyberos.network.ap_color_code

Retrieves the color code for the CYBERWARE AP, e.g., "YYG".

ap_boot

cyberos.network.ap_boot

Enables the CYBERWARE AP on boot.

sta_ch

cyberos.network.sta_ch

Retrieves the channel of the STA_IF.

ap_ch

cyberos.network.ap_ch

Retrieves the channel of the CYBERWARE AP.

ch_reset

cyberos.network.ch_reset

Resets the channel of the CYBERWARE AP when the STA_IF is disconnected from the Wi-Fi access point.

ch_update

cyberos.network.ch_update

Automatically updates the channel of the CYBERWARE AP when requested.

Events

on_sta_active

on_sta_up

on_sta_down

on_sta_connected

on_sta_disconnected

on_ap_active

on_ap_up

on_ap_down

on_ch_change

on_wlan_change

on_ap_pixel

Generators

connect

disconnect

_event_sta_up

_event_sta_down

_event_ap_up

_event_ap_down

_event_ch_change

_push