Commit c7e2ae7b by huangjy

fix:呼吸心率上报255特殊处理

parent fb53228a
......@@ -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();
......
......@@ -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();
//计数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment