using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Wit.SDK.Modular.Sensor.Device.Entity; namespace Wit.SDK.Modular.Sensor.Modular.DataProcessor.Context { /// /// 数据处理器上下文 /// public class DataProcessorContext { /// /// 自动读取间隔 /// private static int _AutoReadInterval = DefaultAutoReadInterval; /// /// 自动读取间隔 /// public static int AutoReadInterval { get { return (_AutoReadInterval > 0) ? _AutoReadInterval : 10; } set { _AutoReadInterval = value; } } public static int DefaultAutoReadInterval { get { return 200; } } /// /// 暂停自动读取 /// public static bool AutoReadPause = false; /// /// 读取的命令 /// public static List ReadCmdList = new List(); } }