修正命名并补全示例

This commit is contained in:
三丙
2025-08-05 19:34:39 +08:00
parent 5c2c718d34
commit 3f4bb375a0
8 changed files with 14 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ public enum YunKuaiChongDownlinkCmdEnum {
REMOTE_PARALLEL_START_CHARGING(0xA4),
REMOTE_RE_START_CHARGING(0x92);
REMOTE_RESTART_PILE(0x92);
private final Integer cmd;

View File

@@ -24,7 +24,7 @@ import sanbing.jcpp.protocol.yunkuaichong.annotation.YunKuaiChongCmd;
*/
@Slf4j
@YunKuaiChongCmd(0x91)
public class YunKuaiChongV150RestartPileResultULCmd extends YunKuaiChongUplinkCmdExe {
public class YunKuaiChongV150RestartPileAckULCmd extends YunKuaiChongUplinkCmdExe {
@Override
public void execute(TcpSession tcpSession, YunKuaiChongUplinkMessage yunKuaiChongUplinkMessage, ProtocolContext ctx) {

View File

@@ -16,7 +16,7 @@ import sanbing.jcpp.protocol.yunkuaichong.YunKuaiChongDownlinkCmdExe;
import sanbing.jcpp.protocol.yunkuaichong.YunKuaiChongDwonlinkMessage;
import sanbing.jcpp.protocol.yunkuaichong.annotation.YunKuaiChongCmd;
import static sanbing.jcpp.protocol.yunkuaichong.enums.YunKuaiChongDownlinkCmdEnum.REMOTE_RE_START_CHARGING;
import static sanbing.jcpp.protocol.yunkuaichong.enums.YunKuaiChongDownlinkCmdEnum.REMOTE_RESTART_PILE;
/**
* 云快充1.5.0 运营平台远程重启充电桩
@@ -41,7 +41,7 @@ public class YunKuaiChongV150RestartPileDLCmd extends YunKuaiChongDownlinkCmdExe
msgBody.writeBytes(encodePileCode(pileCode));
// 0x01立即执行 0x02空闲执行
msgBody.writeInt(type);
encodeAndWriteFlush(REMOTE_RE_START_CHARGING,
encodeAndWriteFlush(REMOTE_RESTART_PILE,
msgBody,
tcpSession);
}