Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ad95c6e6
authored
May 08, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一处注释
parent
74ca81fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
app/src/main/java/com/bgycc/smartcanteen/command/WifiConfigCommandHandler.java
+1
-1
No files found.
app/src/main/java/com/bgycc/smartcanteen/command/WifiConfigCommandHandler.java
View file @
ad95c6e6
...
@@ -77,7 +77,7 @@ public class WifiConfigCommandHandler extends CommandHandler {
...
@@ -77,7 +77,7 @@ public class WifiConfigCommandHandler extends CommandHandler {
LogUtils
.
d
(
TAG
,
"开始配置wifi, ssid: "
+
ssid
+
", identity: "
+
identity
+
", pwd: "
+
pwd
+
", type: "
+
type
);
LogUtils
.
d
(
TAG
,
"开始配置wifi, ssid: "
+
ssid
+
", identity: "
+
identity
+
", pwd: "
+
pwd
+
", type: "
+
type
);
try
{
try
{
NetworkUtils
.
connect
(
ssid
,
identity
,
pwd
,
type
);
NetworkUtils
.
connect
(
ssid
,
identity
,
pwd
,
type
);
// 轮
训
检查wifi是否链接成功
// 轮
询
检查wifi是否链接成功
for
(
int
i
=
0
;
i
<
30
;
i
++)
{
for
(
int
i
=
0
;
i
<
30
;
i
++)
{
Thread
.
sleep
(
POLLING_DELAY
);
Thread
.
sleep
(
POLLING_DELAY
);
WifiInfo
info
=
NetworkUtils
.
getWifiInfo
();
WifiInfo
info
=
NetworkUtils
.
getWifiInfo
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment