{
if (isEthernetSupported && ConnectionManager.EthernetState == ConnectionState.Connected)
{
+ Log.Info(Globals.LogTag, "Ethernet is connected");
_currCP = ConnectionProfileManager.GetCurrentProfile();
Assert.IsNotNull(_currCP);
Assert.IsTrue(_currCP.Name.Contains("eth"), "get name is fail");
* -your mobile connected to an AP now
*/
Log.Info(Globals.LogTag, "DisconnectProfileAsync_DISCONNECT_AP start");
+ if (WiFiManager.GetConnectedAP() == null)
+ {
+ await Task.Delay(5000);
+ }
await setUp();
/* TEST CODE */
var _list = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Registered);
/** TEST CODE */
await WiFiManager.ActivateAsync();
- await WiFiManager.ScanAsync();
+ await Task.Delay(5000);
var list = WiFiManager.GetFoundAPs();
Log.Info(Globals.LogTag, "Got found aps");
foreach (var item in list)