I tested the command "configure_edison --wifi" and it works when running it from the Arduino IDE. You can test it by adding the following line in your Arduino sketch: system("configure_edison --wifi > /dev/ttyGS0");
The command above will display the results in the Serial Monitor. However, you will notice that you are not able to select the network desired from the network list. This command is not appropriate because there is no way to submit values from the Arduino IDE. In this case, the command runs fine, but you cannot interact with it in order to enter additional data.
If you need to restart the WiFi interface, then the following command might work: "systemctl restart wpa_supplicant". You can run it from the Arduino IDE by adding the following line in the Arduino sketch: system("systemctl restart wpa_supplicant");
The command above restarts the WiFi connection. If you have entered the network credentials when running the command configure_edison --wifi before, then your Edison should connect automatically to the same network.