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
bf766952
authored
Mar 20, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化debug模式mac地址的显示及网络切换的间隔限制
parent
4dd1e032
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
app/src/main/java/com/bgycc/smartcanteen/activity/MainActivity.java
+2
-0
app/src/main/java/com/bgycc/smartcanteen/socket/SCWebSocketClient.java
+1
-1
No files found.
app/src/main/java/com/bgycc/smartcanteen/activity/MainActivity.java
View file @
bf766952
...
...
@@ -370,6 +370,8 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
logoLayout
.
setVisibility
(
View
.
GONE
);
debugLayout
.
setOnClickListener
(
this
);
logoLayout
.
setOnClickListener
(
this
);
refreshEthInfo
();
refreshWifiInfo
();
refreshPackageInfo
();
}
...
...
app/src/main/java/com/bgycc/smartcanteen/socket/SCWebSocketClient.java
View file @
bf766952
...
...
@@ -40,7 +40,7 @@ import static com.bgycc.smartcanteen.utils.SmartCanteenUtils.TAG;
public
class
SCWebSocketClient
extends
WebSocketClient
{
private
static
final
long
HEARTBEAT_INTERVAL
=
3
*
60
*
1000
;
private
static
final
long
RECONNECT_DELAY
=
5
*
1000
;
private
static
final
long
SWITCH_INTERVAL
=
1
5
*
1000
;
private
static
final
long
SWITCH_INTERVAL
=
1
0
*
1000
;
private
static
final
String
RESPONSE_ACTION
=
"action"
;
private
static
final
String
RESPONSE_DATA
=
"data"
;
...
...
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