QR code to connect to a WiFi
Question
How can I create a QR code to connect to a WiFi?
Answer
Although the ability to correctly interpret the encoded information depends on the device / application reading the code, in order to be able to trigger actions on the scanner device (like connecting to a WiFi, opening a URL or saving a contact information), the text encoded into the QR needs to follow some standards.
For the WiFi connection in this case, the data in the QR should follow the following schemas:
ssid is 'abc'
password is '1234'
For WEP encryption, the string of data should be:
WIFI:S:abc;T:WEP;P:1234;;
For WPA/WPA2:
WIFI:S:abc;T:WPA;P:1234;;
Without encryption:
WIFI:S:abc;T:nopass;P:1234;;
Additionally, in these cases it might be interesting to hide the human readable part of the code, this can be done via the Human Readable > Visibility option within the barcode properties:
More Information
Further examples on how to format the content within a QR code for different purposes can be found here: https://github.com/zxing/zxing/wiki/Barcode-Contents