Sometimes it's useful to be able to connect to an SSID (or switch from one to the other) from the command line. Here is how to do this on macOS (tested on High Sierra):
networksetup -setairportnetwork [interface] [SSID] [password]
For example:
networksetup -setairportnetwork en0 SSID1
networksetup -setairportnetwork en0 SSID2
networksetup -setairportnetwork en0 MyHouseSSID MyPassword
Using this command to connect to the same SSID your already connected acts as a reconnect.
Subscribe to:
Posts (Atom)
-
A few months ago my wife's mother died. Being the "teksavvy" guy I had to deal with the disconnection of all-the-things electr...
-
Ok, there are a LOT of post on how to flash the ESP-01 with either Arduino, NodeMCU ou the AT command firmware. I have not found one that ga...
-
Et oui encore une fois cette année j'ai assisté aux présentations des projets des finissants en génie électrique du Collège Lionel-Groul...
