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
d0624046
authored
Feb 17, 2020
by
pye52
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
4286c251
6cd22534
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/src/main/java/com/bgycc/smartcanteen/server/websocket/MainWebSocket.java
+3
-2
No files found.
app/src/main/java/com/bgycc/smartcanteen/server/websocket/MainWebSocket.java
View file @
d0624046
...
...
@@ -110,10 +110,11 @@ public class MainWebSocket extends WebSocketClient {
}
private
void
doHeartbeat
()
{
// 每10分钟发一次心跳包给后端
// 每3分钟发一次心跳包给后端
// 原为10分钟一次,现改为3分钟一次以方便后台预警功能
sAutoCheckCount
-=
2
;
if
(
sAutoCheckCount
<
0
)
{
sAutoCheckCount
=
10
*
60
;
sAutoCheckCount
=
3
*
60
;
try
{
JSONObject
data
=
new
JSONObject
();
data
.
put
(
FieldEnum
.
equipmentId
.
name
(),
sDeviceSN
);
...
...
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