mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 18:09:54 +08:00
修正命名并补全示例
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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) {
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user