Scans for networks.
- macOS 10.7+
- Core WLAN
The name (SSID) of the network for which to scan.
An NSError object passed by reference, which will be populated with the error code and the error description if an error occurs during the execution of this method. This parameter is optional and can be passed as nil.
A set of CWNetwork objects.
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.