---
title: "init(ssidPrefix:)"
framework: networkextension
role: symbol
role_heading: Initializer
path: "networkextension/nehotspotconfiguration/init(ssidprefix:)-1v8bx"
---

# init(ssidPrefix:)

Creates a new hotspot configuration, identified by an SSID prefix string, for an open Wi-Fi network.

## Declaration

```swift
init(ssidPrefix SSIDPrefix: String)
```

## Parameters

- `SSIDPrefix`: A prefix string to match the SSID of an open Wi-Fi Network. This value must be between 3 and 32 characters.

## Discussion

Discussion Use this initializer when you want to match a known SSID prefix, but don’t have a full SSID. If the system finds multiple Wi-Fi networks whose SSID string matches the given prefix, it selects the network with the greatest signal strength.

## See Also

### Initializing a configuration

- [init(ssid:)](networkextension/nehotspotconfiguration/init(ssid:)-9apfi.md)
- [init(ssid:passphrase:isWEP:)](networkextension/nehotspotconfiguration/init(ssid:passphrase:iswep:)-3ll1v.md)
- [init(ssid:eapSettings:)](networkextension/nehotspotconfiguration/init(ssid:eapsettings:)-53cpf.md)
- [init(hs20Settings:eapSettings:)](networkextension/nehotspotconfiguration/init(hs20settings:eapsettings:)-291m2.md)
- [init(ssidPrefix:passphrase:isWEP:)](networkextension/nehotspotconfiguration/init(ssidprefix:passphrase:iswep:)-7ttmu.md)
