update 电单车协议

This commit is contained in:
Guoqs
2024-07-15 16:05:15 +08:00
parent 61b948aea9
commit b9ec56a202
5 changed files with 259 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
package com.jsowell.netty.domain;
public class ChargingPileMessage {
private int physicalId;
private short messageId;
private byte command;
private byte[] data;
public ChargingPileMessage(int physicalId, short messageId, byte command, byte[] data) {
this.physicalId = physicalId;
this.messageId = messageId;
this.command = command;
this.data = data;
}
// Getters
public int getPhysicalId() { return physicalId; }
public short getMessageId() { return messageId; }
public byte getCommand() { return command; }
public byte[] getData() { return data; }
}