package com.mes.s7.job;
|
|
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Serializer;
|
import com.mes.s7.entity.S7Data;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @Author : zhoush
|
* @Date: 2025/4/30 14:20
|
* @Description:
|
*/
|
@Component
|
@Slf4j
|
public class S7Job {
|
|
// @Autowired(required = false)
|
// S7Serializer s7Serializer;
|
//
|
// @Scheduled(fixedDelay = 1000)
|
// public void hollowRemoveTaskOne() {
|
// S7Data S7DataWL1 = s7Serializer.read(S7Data.class);
|
// log.info("read data: {}", S7DataWL1);
|
// }
|
|
}
|