1.2.3.1 Getting Results – Callback Only
If a callback function was provided to WDRV_PIC32MZW_BSSFindFirst, the Wi-Fi driver will call this callback when the first results are available. The callback is provided with the scan result for a single BSS as well as the index of the results within the full set of BSSs discovered. If the callback function returns the value true to the Wi-Fi driver, it will cause the driver to request the next result from
the PIC32MZW1 device. When this result is available, the Wi-Fi driver will again call the callback and provide the BSS information. It is thus possible to receive all the results via the callback.