net_wifi_join

Join a WiFi Network.

Usages

net_wifi_join SSID [-p password] [-i interface_nbr] [-t net_type] [-s security_type]

Arguments

SSID, Wifi network to join.

-p [password]Specify the  password to access the WiFi network.

-i [Interface number]Specified on which interface to use.

-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 joined, 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

  1. This command will failed if the interface has already joined or created an network. In this case, use net_wifi_leave command before. 
  2. The argument [-p password] is not applicable if the security_type specified is 'open'. 

Example 

To create a WiFi network with those parameters: 

ParametersValue
SSIDWiFiNetwork
Passwordabcd1234
Interface1
Network TypeInfrastructure
SecurityWPA2

The command would be :

net_wifi_join -i 1 WiFiNetwork -p abcd1234 -t infra -s wpa2