net_wifi_create
Create a WiFi Network.
Usages
net_wifi_create SSID [-p password] [-c channel] [-i interface_nbr] [-t net_type] [-s security_type]
Arguments
SSID, Wifi network to create.
-p [password]
, Specify the password to access the WiFi network.
-i [Interface number]
, Specify on which interface to use.
-c [Channel]
, Wifi 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 the security_type specified is 'open'.
Example
To create a WiFi network with those parameters:
Parameters | Value |
---|---|
SSID | WiFiNetwork |
Password | abcd1234 |
Interface | 1 |
Channel | 6 |
Network Type | Infrastructure |
Security | WPA2 |
The command would be :
net_wifi_create -i 1 WiFiNetwork -p abcd1234 -c 6 -t infra -s wpa2