Assert.IsNotNull(_connectionProfile, "No Profile Found");
_connectionProfile.ProfileStateChanged += EventHandlerProfileStateChanged;
+ await Task.Delay(3000);
await tearDown();
await Task.Delay(5000);
Log.Info(Globals.LogTag, "_flag=" + _flag);
Assert.IsTrue(_flag, "Profile State don't change");
+ _connectionProfile.ProfileStateChanged -= EventHandlerProfileStateChanged;
// POSTCONDITION
await setUp();
}
Assert.IsNotNull(_connectionProfile, "No Profile Found");
_connectionProfile.ProfileStateChanged += EventHandlerProfileStateChanged;
+ await Task.Delay(3000);
Log.Info(Globals.LogTag, "Event subscripted");
await tearDown();
await Task.Delay(5000);
Log.Info(Globals.LogTag, "_flag=" + _flag);
Assert.IsTrue(_flag, "Profile State don't change");
+ _connectionProfile.ProfileStateChanged -= EventHandlerProfileStateChanged;
// POSTCONDITION
await setUp();
}
* TEST CODE
*/
WiFiManager.ConnectionStateChanged += EventHandlerConnectionStateChangedCBState;
+ await Task.Delay(3000);
await tearDown();
await Task.Delay(3000);
Assert.IsTrue(_flag, "Flag should be true after checking");
* Then, connect to WiFi private2, changed WiFiAp
*/
WiFiManager.ConnectionStateChanged += EventHandlerConnectionStateChangedCBAp;
+ await Task.Delay(3000);
await networkSetup.WiFiActivate(networkParameter.wnPRIVATE1, networkParameter.wType.wPrivate, networkParameter.wPASS);
await Task.Delay(5000);
_wifiAP2 = WiFiManager.GetConnectedAP();
Assert.IsTrue(_flag, "Flag should be true after checking");
+ WiFiManager.ConnectionStateChanged -= EventHandlerConnectionStateChangedCBAp;
// POSTCONDITION
await setUp();
}
{
_wifiAP2.Dispose();
}
- try
- {
- WiFiManager.ConnectionStateChanged -= EventHandlerConnectionStateChangedCBAp;
- }
- catch
- {
- }
}
}
}
{
try
{
- /*
+ /*
* TEST CODE
*/
WiFiManager.DeviceStateChanged += EventHandlerDeviceStateChangedCB;
+ await Task.Delay(3000);
if (WiFiManager.IsActive)
{
Log.Info(Globals.LogTag, "WiFi is activated");
*/
Assert.IsNotNull(_connectionProfile, "No Profile Found");
_connectionProfile.ProfileStateChanged += EventHandlerProfileStateChangedCB;
+ await Task.Delay(3000);
await tearDown();
Log.Info(Globals.LogTag, "ConnectionProfile3=" + _connectionProfile.GetState(AddressFamily.IPv4).ToString());
await Task.Delay(3000);
* TEST CODE
*/
WiFiManager.RssiLevelChanged += EventHandlerRssiLevelChangedCB;
+ await Task.Delay(3000);
if (WiFiManager.IsActive)
{
Log.Info(Globals.LogTag, "WiFi is activated");
try
{
WiFiManager.DeviceStateChanged += EventHandlerDevice;
+ await Task.Delay(3000);
if (!WiFiManager.IsActive)
{
await WiFiManager.ActivateAsync();
/*
* TEST CODE
*/
- WiFiManager.ConnectionStateChanged += (s, e) =>
+ EventHandler<ConnectionStateChangedEventArgs> connectionStateChanged = (s, e) =>
{
_flag = true;
};
+ WiFiManager.ConnectionStateChanged += connectionStateChanged;
+ await Task.Delay(3000);
await setUp();
await Task.Delay(3000);
Assert.IsTrue(_flag, "Flag should be true after checking");
+ WiFiManager.ConnectionStateChanged -= connectionStateChanged;
Log.Info(Globals.LogTag, "Successfully done");
}
catch (NotSupportedException)
};
WiFiManager.BackgroundScanFinished += backgroundScanFinished;
+ await Task.Delay(3000);
await setUp();
WiFiAP ap = WiFiManager.GetConnectedAP();
ap.ForgetAP();