# Interface WiFiScanCallback

public interface WiFiScanCallback
Callback for `WiFi.scan(...)`. Invoked once on the EDT.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onScanComplete(WiFiNetwork[] networks, Throwable error)`
  Called when the scan completes (successfully or not).

- ## Method Details

  - ### onScanComplete

    void onScanComplete(WiFiNetwork[] networks, Throwable error)
    Called when the scan completes (successfully or not). `networks` is sorted by signal strength, strongest first. On failure `networks` is `null` and `error` holds the cause.