---
title: "init(_:)"
framework: wifiinfrastructure
role: symbol
role_heading: Initializer
path: "wifiinfrastructure/wissid/init(_:)"
---

# init(_:)

Creates an SSID from raw binary data.

## Declaration

```swift
init?(_ ssid: Data)
```

## Parameters

- `ssid`: The raw binary data representing the SSID, between 1 and 32 bytes in length.

## Return Value

Return Value A new SSID, or nilif the data length is invalid.

## Discussion

Discussion Use this initializer when working with SSID data received from Wi-Fi enabled accessories. Valid SSIDs conform to Wi-Fi standard length requirements.

## See Also

### Working with raw SSID data

- [data](wifiinfrastructure/wissid/data.md)
