Thanks for all the info here. I could not get connected to a hidden network (a.k.a network not broadcasting the SSID) with the examples of nmcli and nmtui here. I could not find an option in the nmtui interface to set the “hidden” flag and the version of nmcli on CHIP (0.9.10.0) does not have the “–hidden” option (https://bugzilla.gnome.org/show_bug.cgi?id=752173).
This is what I did to connect to a hidden SSID network via the command line using nmcli.
– I connected to the command line using the USB on-the-go serial port connection from Windows using putty from the docs (http://docs.getchip.com/#usb-on-the-go-serial-connection).
– Create the connection without auto connecting on boot
root@chip:~# nmcli con add con-name your_connection_name ifname wlan0 type wifi autoconnect no save yes ssid your_hidden_ssid
– Tell NetworkManager that the SSID is hidden, set security type and set the password
root@chip:~# nmcli con modify your_connection_name wifi.hidden true wifi-sec.key-mgmt wpa-psk wifi-sec.psk your_passwd
– Activate the connection
root@chip:~# nmcli con up your_connection_name
– Test the connection
root@chip:~# ping 184.108.40.206
root@chip:~# nmcli con down your_connection_name
– Use the below command to see all of the options that can be set for connection
root@chip:~# nmcli connection show id your_connection_name
– Note: I used the network SSID as the connection name (your_connection_name = your_hidden_ssid).
Hope this helps someone.