---
title: "network(ssid:credentials:)"
framework: mattersupport
role: symbol
role_heading: Type Method
path: "mattersupport/matteradddeviceextensionrequesthandler/wifinetworkassociation/network(ssid:credentials:)"
---

# network(ssid:credentials:)

Maintains information about a specific Wi-Fi network.

## Declaration

```swift
static func network(ssid: Data, credentials: Data) -> MatterAddDeviceExtensionRequestHandler.WiFiNetworkAssociation
```

## Parameters

- `ssid`: The SSID of the Wi-Fi network to associate to.
- `credentials`: The credentials that the systems requires for associating to that network.

## Discussion

Discussion The credentials represent the passphrase that the system needs to associate to the SSID, if one is required. The security type of the Wi-Fi network determines the content of this field, its format, and its valid length.

## See Also

### Getting network information

- [defaultSystemNetwork](mattersupport/matteradddeviceextensionrequesthandler/wifinetworkassociation/defaultsystemnetwork.md)
