scanNetworks method
Implementation
Future<List<WiFiAccessPoint>> scanNetworks() async {
//print('Send Wi-Fi scan command to device');
if (_session == null || !_session!.isSessionEstablished) {
try {
await _initSession();
} catch (e) {
//print(e);
rethrow;
}
return await _startNetworkScan();
} else {
return await _startNetworkScan();
}
}