Saturday, January 28, 2017

Temporarily switching Wi-Fi networks from the command line on a Raspberry Pi

I recently had a scenario with my Raspberry Pi (Zero, running Raspbian) where I needed to temporarily switch away from the primary Wi-Fi connection to another access point (to drive a camera) then reconnect to my original network. Turns out wpa_cli can do the trick:

The best thing about this approach is that it is non-persistent, so if it all goes horrible wrong you get your original networking configuration back upon reboot.

1 comment:

  1. Hey, guys! This topic has been something that I have been looking for a few hours. I want to say a big thanks to the author for sharing this useful information. I think I will be back here later to find more cool things from you in future. Don't waste your time on doing boring paperwork - assist it to the professionals at
    www.custom-paper-writing.org and be sure in their brilliant quality 24/7!

    ReplyDelete