Last active
June 30, 2022 22:35
-
-
Save hatsunea/78bab41fe4307759585066d7e9e1317d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WiFi接続 | |
CancellationTokenSource cs = new(60000); | |
while (!WifiNetworkHelper.ConnectDhcp(Ssid, Password, requiresDateTime: true, token: cs.Token)) | |
{ | |
Debug.WriteLine($"Can't connect to the network, error: {WifiNetworkHelper.Status}"); | |
if (WifiNetworkHelper.HelperException != null) | |
{ | |
Debug.WriteLine($"ex: {WifiNetworkHelper.HelperException}"); | |
} | |
Thread.Sleep(500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment