Contents

scanForNetworks(withSSID:)

Scans for networks.

Declaration

func scanForNetworks(withSSID ssid: Data?) throws -> Set<CWNetwork>

Parameters

  • ssid:

    The SSID for which to scan.

Return Value

A set of CWNetwork objects.

Discussion

If ssid parameter is present, a directed scan will be performed by the interface, otherwise a broadcast scan will be performed. This method will block for the duration of the scan.

See Also

Scanning for networks