[change]给工控机发送数据时间修改

This commit is contained in:
xinfengkun
2022-06-23 10:48:20 +08:00
parent 7724c21ead
commit 008b33b900

View File

@@ -28,7 +28,7 @@ public class RawPack {
if (msgType == null) {
return null;
}
double time = System.nanoTime() / 1000000000.0;
double time = System.currentTimeMillis() / 1000.0;
//封装Header
MessagePad.Header.Builder headerBuilder = MessagePad.Header.newBuilder();
headerBuilder.setMsgID(msgID.incrementAndGet());//消息唯一ID生成数据累加。从1开始连接未重新初始化就一直累加