good morning to all,
I tried to configure the WiFi connection from putty with these commands:
uci set wireless.@wifi-iface[0].mode=sta
uci set wireless.@wifi-iface[0].ssid='nomewifi'
uci set wireless.@wifi-iface[0].encryption='psk2'
uci set wireless.@wifi-iface[0].key='password'
uci commit wireless
wifi
Linino does not return any error. The last command (wifi) disconnects the WiFi and then something does not work. YUN is no longer in AP mode and I can't find it on my WiFi. The "ping arduino.local" loses all packets ...
What is the right syntax to change the configuration of WiFi?
What is wrong?
It's not receiving the IP address because the interface already has a fixed one, the one when in AP mode. As you tell the wifi interface to work in "station" (client) mode, you also need to tell the related network interface to look for a dhcp to get an IP address