package com.mes.s7.job;
|
|
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Serializer;
|
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 read = s7Serializer.read(S7Data.class);
|
// log.info("read data: {}", read);
|
}
|
|
}
|