# WiFi QR code generator

Make a QR code that joins a WiFi network when scanned, with the network name and password escaped correctly.

- Endpoint: `POST https://setget.net/v1/tools/qr-wifi` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `qr-wifi`
- Page: https://setget.net/tools/qr-wifi

## Inputs

- `ssid` (required, string): The network name, exactly as it appears (capitals matter).
- `password` (optional, string): The network password. Leave empty for an open network.
- `security` (optional, string, one of `WPA`, `WEP`, `nopass`, default `"WPA"`): Network security. WPA covers WPA2 and WPA3. Use nopass for an open network.
- `hidden` (optional, boolean, default `false`): The network does not broadcast its name.
- `error_correction` (optional, string, one of `L`, `M`, `Q`, `H`, default `"M"`): How much damage the code survives: L about 7%, M 15%, Q 25%, H 30%. Higher levels hold less.
- `module_size` (optional, integer, default `8`, range 1..40): Width of one small square (module) in pixels.
- `margin` (optional, integer, default `4`, range 0..20): Blank quiet zone around the code, in modules. Scanners expect at least 4.
- `foreground` (optional, string, default `"#000000"`): Colour of the dark squares: hex such as #000000, or a basic colour name.
- `background` (optional, string, default `"#ffffff"`): Colour behind the code: hex, a basic colour name, or "transparent".

## Example 1: A WPA network

```json
{"input":{"ssid":"Cafe Guest","password":"latte;art"}}
```

## Example 2: An open, hidden network

```json
{"input":{"ssid":"Open Net","security":"nopass","hidden":true}}
```

**Is my password sent anywhere else?** It is only used to draw the code. Anyone who can see the code can read the password, so display it only where guests should have it.

**Which phones can scan it?** The cameras of current iPhone and Android phones read this format and offer to join the network.
