Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c7e2ae7b
authored
Nov 28, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:呼吸心率上报255特殊处理
parent
fb53228a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/platform/alarm/alarmStrategy/BreathAlarm.java
server-service/src/main/java/com/makeit/service/platform/alarm/alarmStrategy/HeartAlarm.java
server-service/src/main/java/com/makeit/service/platform/alarm/alarmStrategy/BreathAlarm.java
View file @
c7e2ae7b
...
...
@@ -101,6 +101,11 @@ public class BreathAlarm implements IAlarm {
//呼吸率
int
br
=
(
int
)
properties
.
get
(
"br"
);
if
(
br
==
255
)
{
log
.
info
(
"当前上报呼吸数据255,无上报数据"
);
RedisUtil
.
delete
(
RedisConst
.
ALARM_DEVICE_BR_ID
+
deviceId
);
return
;
}
Date
now
=
new
Date
();
long
endLong
=
now
.
getTime
();
...
...
server-service/src/main/java/com/makeit/service/platform/alarm/alarmStrategy/HeartAlarm.java
View file @
c7e2ae7b
...
...
@@ -86,6 +86,11 @@ public class HeartAlarm implements IAlarm {
String
personState
=
Convert
.
toStr
(
properties
.
get
(
"personState"
));
//心率
int
hr
=
(
int
)
properties
.
get
(
"hr"
);
if
(
hr
==
255
)
{
log
.
info
(
"当前上报心率255,无上报数据"
);
RedisUtil
.
delete
(
RedisConst
.
ALARM_DEVICE_HR_ID
+
deviceId
);
return
;
}
Date
now
=
new
Date
();
long
endLong
=
now
.
getTime
();
//计数
...
...
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