package com.ruoyi.task.device;

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

import com.ruoyi.bst.device.service.DeviceIotService;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;

@Component
@Slf4j
public class DeviceTask {

    @Autowired
    private DeviceIotService deviceIotService;

    // 监控所有设备
    public void monitorAll() {
        deviceIotService.monitor(new ArrayList<>());
    }

}
