Generate QR Code for WiFi

  1.  install ‘qrencode’ command.
    $ sudo apt install qrencode
  2. generate QR code png
    $ qrencode -o image.png 'WIFI:T:WPA;S:SSID;P:PASSWORD;;'
Parameter Example Description
T WPA Authentication type; can be WEP or WPA, or leave empty for no password.
S SSID Network SSID. Required.
P pasXXXX Password, ignored if T is left blank.
H true Optional. True if the network SSID is hidden.