associate(to:password:)
Associates to a given network using the given network passphrase.
Declaration
func associate(to network: CWNetwork, password: String?) throwsParameters
- network:
The network to which the interface will associate.
- password:
The network passphrase or key. Required for association to WEP, WPA Personal, and WPA2 Personal networks.
Discussion
This method will block for the duration of the association. This operation may require an administrator password.