Create a WiFi NetworkWi-Fi network.
Usages
net_wifi_create SSID [-p password] [-c channel] [-i interface_nbr] [-t net_type] [-s security_type]
Arguments
SSID
, Wifi Wifi network to create.
-p [password]
, Specify Specify the password to access the WiFi network.
-i [Interface number]
, Specify Specify on which interface to use.
-c [Channel]
, Wifi Wi-Fi Channel
-t [network type]
, Network Type (infra or adhoc)
-s [security type]
, Network security type (open, wep, wpa, wpa2 or wps).
Output
If the the WiFi network is properly created, this command return to the terminal: Completed
...
Successfully
Otherwise, this command will return information about the error to the terminal.
Required Configuration
NET_IF_CFG_WIFI_EN
must be enabled.
Notes/Warnings
- This command will failed if the interface has already joined or created an network. In this case, use
net_wifi_leave
command before. - The argument
[-p password]
is not applicable if thesecurity_type
specified is'open'
.
Example
To create a WiFi network with those parameters:
...