Raspberry Pi Change WiFi Information

method one:

When burning the system, create it under the TF card/boot partitionwpa_supplicant.confdocument

  1. country=CN
  2. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  3. update_config=1
  4. network={
  5. ssid="TP-LINK"
  6. psk="123456"
  7. priority=2
  8. }
  9. network={
  10. ssid="link_010"
  11. psk="12345679"
  12. priority=3
  13. }

  Explanation of special terms:

ssid: SSID of the network
psk: password
priority: connection priority, must be a positive number, the larger the number, the higher the priority
scan_ssid: set to 1 to connect to hidden wifi
key_mgmt: encryption mode

 

Add new WiFi information in the following format:

  1. network={
  2. ssid="link_010"
  3. psk="12345679"
  4. priority=3
  5. }

After saving, restart the Raspberry Pi

sudo reboot

Method Two:

Connect to the Raspberry Pi via ssh or screen and enter the command line:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Add new WiFi info:

  1. network={
  2. ssid="link_010"
  3. psk="12345679"
  4. priority=2
  5. }

Then ctrl+x, then press Y to save the parameters and return;

Reboot the Raspberry Pi

sudo reboot

Related: Raspberry Pi Change WiFi Information