mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update 电单车协议
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public class DnyMessage {
|
||||
private final ByteBuf content;
|
||||
|
||||
public DnyMessage(ByteBuf content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public ByteBuf getContent() {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
|
||||
public class Message68 {
|
||||
private final ByteBuf content;
|
||||
|
||||
public Message68(ByteBuf content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public ByteBuf getContent() {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
package com.jsowell.netty.domain;
|
||||
|
||||
public class ProtocolDnyMessage {
|
||||
private final byte[] header;
|
||||
private final int length;
|
||||
private final byte[] physicalId;
|
||||
private final int messageId;
|
||||
private final byte command;
|
||||
private final byte[] data;
|
||||
private final int checksum;
|
||||
|
||||
public ProtocolDnyMessage(byte[] header, int length, byte[] physicalId, int messageId, byte command, byte[] data, int checksum) {
|
||||
this.header = header;
|
||||
this.length = length;
|
||||
this.physicalId = physicalId;
|
||||
this.messageId = messageId;
|
||||
this.command = command;
|
||||
this.data = data;
|
||||
this.checksum = checksum;
|
||||
}
|
||||
|
||||
public byte[] getHeader() {
|
||||
return header;
|
||||
}
|
||||
|
||||
public int getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public byte[] getPhysicalId() {
|
||||
return physicalId;
|
||||
}
|
||||
|
||||
public int getMessageId() {
|
||||
return messageId;
|
||||
}
|
||||
|
||||
public byte getCommand() {
|
||||
return command;
|
||||
}
|
||||
|
||||
public byte[] getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public int getChecksum() {
|
||||
return checksum;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.jsowell.netty.domain;
|
||||
package com.jsowell.netty.domain.ebike;
|
||||
|
||||
import com.jsowell.common.YouDianUtils;
|
||||
import com.jsowell.common.util.BytesUtil;
|
||||
Reference in New Issue
Block a user