pynq.lib.usb_wifi Module¶
The pynq.lib.usb_wifi module is a python module for interacting with USB WiFI dongles. This module can be used to connect and disconnect to wireless networks.
-
class
pynq.lib.usb_wifi.
Usb_Wifi
[source]¶ Bases:
object
This class controls the usb dongle wifi connection.
The board is compatible with RALink RT5370 devices.
Note
Administrator rights are necessary to create network interface file
-
wifi_port
¶ str – string identifier of the wireless network device
-
connect
(ssid, password)[source]¶ Make a new wireless connection.
This function kills the wireless connection and connect to a new one using network ssid and WPA passphrase. Wrong ssid or passphrase will reject the connection.
Parameters: - ssid (str) – Unique identifier of the wireless network
- password (str) – String WPA passphrase necessary to access the network
Returns: Return type: None
-
gen_network_file
(ssid, password)[source]¶ Generate the network authentication file.
Generate the file from network SSID and WPA passphrase
Parameters: - ssid (str) – String unique identifier of the wireless network
- password (str) – String WPA passphrase necessary to access the network
Returns: Return type: None
-