コード例 #1
0
        public void monitor()
        {
            for (int i = 0; i < centerManager.Max; i++)
            {
                IPList ip = centerManager.iplist[i];

                if (ip.IP == data.DeviceID)
                {
                    Console.WriteLine(i);
                    task = cc.taskManager.GetDeviceTask(i);
                    if (task == null)
                    {
                        string TaskCategory = "BVTask";
                        string Taskname     = "test";
                        task = cc.taskManager.SetDeviceTask(TaskCategory, Taskname, i);
                        if (task == null)
                        {
                            Console.WriteLine("task is null");
                        }
                        int    a;
                        string b;
                        task.GetTaskConfig(out a, out b);
                        Console.WriteLine(a + "  " + b);
                    }
                }
            }
        }