|
|
@@ -56,12 +56,12 @@ public class DataReader {
|
|
|
//消息传递
|
|
|
if(Objects.nonNull(headBuf)){
|
|
|
DataPackage data = DataDecoder.decode(buffer);
|
|
|
- log.debug("**********************************exis5Device:"+existDevice);
|
|
|
+ log.info("**********************************exis5Device:"+existDevice);
|
|
|
if(existDevice.containsKey(data.getAddr()) && existDevice.get(data.getAddr())==1){
|
|
|
//判断是否存在
|
|
|
byte[] mattressData = headBuf.appendBytes(buf).getBytes();
|
|
|
vertx.eventBus().send("mattress.forward",new JsonObject().put("mattress", mattressData));
|
|
|
- log.debug("head+data信息获取:"+
|
|
|
+ log.info("head+data信息获取:"+
|
|
|
SocketUtil.bytesToHexString(mattressData));
|
|
|
}
|
|
|
}
|