mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 22:15:06 +08:00
commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.jsowell.netty.handler;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
|
||||
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
|
||||
import com.jsowell.common.util.YKCUtils;
|
||||
import com.jsowell.netty.factory.YKCOperateFactory;
|
||||
import io.netty.channel.Channel;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 对时设置
|
||||
*
|
||||
* 运营平台同步充电桩时钟,以保证充电桩与运营平台的时钟一致
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2022/9/19 15:11
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class TimeCheckSettingHandler extends AbstractHandler{
|
||||
private final String type = YKCUtils.frameType2Str(YKCFrameTypeCode.TIME_CHECK_SETTING_CODE.getBytes());
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
YKCOperateFactory.register(type, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, Channel channel) {
|
||||
log.info("[===对时设置===] param:{}, channel:{}", JSONObject.toJSONString(ykcDataProtocol), channel.toString());
|
||||
// 下发
|
||||
// 桩编号
|
||||
|
||||
// 当前时间 CP56Time2a 格式
|
||||
|
||||
// return super.supplyProcess(ykcDataTemplate, channel);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user