<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWInterface/ssidData()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:objc(cs)CWInterface(im)ssidData"
  },
  "title" : "ssidData()"
}
-->

# ssidData()

The current service set identifier (SSID) for the interface, returned as data.

```
func ssidData() -> Data?
```

## Discussion

Dynamically queries the interface for the current SSID. The SSID is 1-32 octets. Returns *nil* in the case of an error, or if the interface is not participating in a network.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)