This project is a simple web-based application that generates a QR code for connecting to a specified WiFi network. When scanned, the QR code automatically connects the user's device to the WiFi network using the embedded network credentials.
- Generate a QR code to connect to WiFi networks.
- Supports various encryption types (WPA/WPA2, WEP, or none).
- Easy setup and use with simple HTML, CSS, and JavaScript.
- Responsive and aesthetically pleasing design.
Follow these instructions to set up the project locally on your machine.
-
Clone the Repository:
git clone https://github.com/your-username/wifi-qr-code-generator.git cd wifi-qr-code-generator
-
Set Up Project Structure: Ensure that you have these files in your project directory:
index.html
style.css
script.js
Open index.html in a Web Browser: Launch the index.html file in a web browser. This will generate a QR code based on the WiFi network information provided in the script.js
file.
Scan the QR Code: Use a QR code scanner app on your smartphone or a similar device to scan the code. The device should automatically connect to the specified WiFi network.
WiFi Credentials: Edit script.js
and replace the placeholders with your network details:
var ssid = "YourNetworkName"; // Replace with your WiFi SSID
var password = "YourNetworkPassword"; // Replace with your WiFi Password
var encryption = "WPA"; // Set to "WPA", "WEP", or "none"
Contributions are welcome! Please follow the standard GitHub flow for contributions:
- Create a new branch.
- Make your changes and commit them.
- Push to your fork and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.