充电桩远程升级

This commit is contained in:
2023-04-06 16:32:41 +08:00
parent 263970c1e0
commit b3bbc21a82
8 changed files with 47 additions and 33 deletions

View File

@@ -53,7 +53,7 @@ public interface YKCPushCommandService {
* 发送远程更新命令
* @param command
*/
void pushUpdateFileCommand(UpdateFileCommand command);
void pushUpdateFileCommand(UpdateFirmwareCommand command);
/**
* 发送充电桩设置命令

View File

@@ -69,7 +69,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
// 通过桩编号获取channel
Channel channel = PileChannelEntity.getChannelByPileSn(pileSn);
if (Objects.isNull(channel)) {
log.error("push命令失败, 桩号:{}无法获取到长连接, 请检查充电桩连接状态!", pileSn);
log.error("push命令[{}]失败, 桩号:{}无法获取到长连接, 请检查充电桩连接状态!", ((YKCFrameTypeCode) frameTypeCode).getValue(), pileSn);
return false;
}
/**
@@ -284,7 +284,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
}
@Override
public void pushUpdateFileCommand(UpdateFileCommand command) {
public void pushUpdateFileCommand(UpdateFirmwareCommand command) {
List<String> pileSns = command.getPileSnList();
if (CollectionUtils.isEmpty(pileSns)) {
return;