Future scanWifiNetworks() async {
final canScan = await wiFiScan.canStartScan();
if (canScan != CanStartScan.yes) {
throw 'Unable to scan';
}
return await wiFiScan.startScan();
}
Calling this method on every 10 seconds will return false on the 4th try.
Any idea why this is the case and why when I wait for 2-3 min then again works as normal?
Future scanWifiNetworks() async {
final canScan = await wiFiScan.canStartScan();
}
Calling this method on every 10 seconds will return false on the 4th try. Any idea why this is the case and why when I wait for 2-3 min then again works as normal?