aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-02-13 20:02:59 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-13 20:02:59 +0200
commit69c55f54ee7217f16419049a311ce437d3c19157 (patch)
tree2c0c25115e07ad4eba5dd4bb4c150fe6d1f0c702 /Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity
parent7b371c15dfb48c5182bbb704b5ea1ff1385b1d30 (diff)
downloadTango-69c55f54ee7217f16419049a311ce437d3c19157.tar.gz
Tango-69c55f54ee7217f16419049a311ce437d3c19157.zip
Fixed issue with PPC WIFI connection profiles.
Implemented OS restart after first setup. Prevented PPC updater crashes without restarting PPC. Implemented restarting system view on PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity/WiFiNetwork.cs19
1 files changed, 17 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity/WiFiNetwork.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity/WiFiNetwork.cs
index 766e25e40..46a1e2355 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity/WiFiNetwork.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connectivity/WiFiNetwork.cs
@@ -86,14 +86,14 @@ namespace Tango.PPC.Common.Connectivity
return new WiFiAuthentication(new AuthRequest(AccessPoint));
}
- public Task<bool> Connect(WiFiAuthentication request)
+ public Task<bool> Connect(WiFiAuthentication request, bool overwriteProfile)
{
return Task.Factory.StartNew<bool>(() =>
{
try
{
Connecting = true;
- return AccessPoint.Connect(request.AuthRequest, false);
+ return AccessPoint.Connect(request.AuthRequest, overwriteProfile);
}
catch (Exception)
{
@@ -126,5 +126,20 @@ namespace Tango.PPC.Common.Connectivity
}
});
}
+
+ public Task Forget()
+ {
+ return Task.Factory.StartNew(() =>
+ {
+ try
+ {
+ AccessPoint.DeleteProfile();
+ }
+ catch
+ {
+
+ }
+ });
+ }
}
}