|
@@ -127,9 +127,9 @@ public class WatchJWServerHandler extends HexBinaryAcceptanceHandlerAdapter {
|
|
|
normalReply(factory, channel, "BP01");
|
|
|
break;
|
|
|
case "AP33": // 设置模式回复
|
|
|
- //IWAP33,080835,1#
|
|
|
+ //IWAP33,080835,1# IWAP33,080835,03#
|
|
|
if (deviceId != null) {
|
|
|
- Integer moderType = getInteger(msg.substring(14, 16));// 收到回复状态
|
|
|
+ Integer moderType = getInteger(msg.substring(14, msg.indexOf("#")));// 收到回复状态
|
|
|
if (swm.getWorkType() == URGENCY) {// 当前设置的模式
|
|
|
if (workModel != null && moderType == URGENCY) {
|
|
|
workModel.setUrgentType(URGENCY);
|
|
@@ -147,6 +147,10 @@ public class WatchJWServerHandler extends HexBinaryAcceptanceHandlerAdapter {
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
+ case "APHT": // 心率测量
|
|
|
+ sendMsg2Kafka((msg + deviceId + "," + DateUtil.formatDate2String(new Date())).getBytes(), deviceId, channel);// 心率报文下发
|
|
|
+ normalReply(factory, channel, "BP49");
|
|
|
+ break;
|
|
|
default: // 其他
|
|
|
logger.info("client send data without handle type ...");
|
|
|
break;
|