Ver Fonte

add reply msg with deviceId

rainbow954 há 6 anos atrás
pai
commit
00203f5ff3

+ 2 - 1
src/main/java/com/tidecloud/dataacceptance/service/impl/YiTongGpsServerHandler.java

@@ -274,7 +274,8 @@ public class YiTongGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter {
 		channelFuture.addListener(new GenericFutureListener<Future<? super Void>>() {
 			@Override
 			public void operationComplete(Future<? super Void> future) throws Exception {
-				logger.info("server reply [{}] to client success", DatatypeConverter.printHexBinary(bytes));
+				String deviceId = channelDeviceMap.get(channel);
+				logger.info("server reply to client device [{}] success:[{}] ",deviceId, DatatypeConverter.printHexBinary(bytes));
 			}
 		});
 	}