doc: 修复TCP协议解析注释错误 (#15)

This commit is contained in:
PengyuDeng 2024-01-05 11:27:33 +08:00 committed by GitHub
parent 0bf5111e31
commit 7b9a4cf128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -152,11 +152,11 @@ public enum BinaryMessageType {
if (type.forTcp == null) {
return null;
}
// 1-4字节 时间戳
// 1-8字节 时间戳
long timestamp = data.readLong();
// 5-6字节 消息序号
// 9-11字节 消息序号
int msgId = data.readUnsignedShort();
// 7... 字节 设备ID
// 12... 字节 设备ID
String deviceId = (String) DataType.STRING.read(data);
if (deviceId == null) {
deviceId = deviceIdMaybe;