I already posted this on stackoverflow but without success:
I want to switch between known Wifi networks using the terminal/shell scripts without manual intervention. The Wifi networks are registered using the built-in Raspbian Wifi managing tool.
The wicd-cli tool (apt-get install wicd-cli) seems to be perfect for this:
The command executes successfully with a Done! message but the current Wifi connection is disconnected and the new one to myssid is not built up.
Code: Select all
wicd-cli --wireless -c "myssid" "mypassword"
I also tried to connman tool but it completely breaks Wifi until the tool is uninstalled.
How can I switch between Wifi networks?