Files
SecMPS/api_sqlsugar/Warehouse/Services/RealtimePollJob.cs

21 lines
578 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Quartz;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Threading.Tasks;
namespace VolPro.Warehouse.Services;
/// <summary>
/// 实时数据轮询任务Phase 2 完善)。
/// 定时轮询 MC4.0 IoT 设备实时值 → 更新 iot_devicedata。
/// Cron 建议: 每 10 秒 ("0/10 * * * * ?")
/// </summary>
public class RealtimePollJob : IJob
{
public Task Execute(IJobExecutionContext context)
{
// TODO: Phase 2 — 遍历在线 MC4 网关,轮询实时值写入 iot_devicedata
return Task.CompletedTask;
}
}