package com.data.emqx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author licd
 * @className EmqxTimer
 * @description com.data.emqx
 * @date 2024/12/16 15:19
 */

@Component
public class EmqxTimer {
    @Autowired
    private MqttSubscribeSample mqtt;
    @Scheduled(fixedDelay = Long.MAX_VALUE)
    public void getEmqxData() {
        mqtt.getEmqsData();
    }
}
