wxr
2020-08-11 2bec9c838d2d688025698de8ec1de401ffd7dd1f
HDL_ON/Entity/Function/AC.cs
@@ -178,7 +178,11 @@
                }
            }
        }
        Trait _trait_mode;
        /// <summary>
        /// 模式属性
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public Trait trait_mode
        {
@@ -309,7 +313,6 @@
            {
                try
                {
                    return trait_swting.value;
                }
                catch (Exception ex)
@@ -412,8 +415,17 @@
            if (command == CommandType_A.write)
            {
                sendJob = new JObject { { "Namespace", vendor_code }, { "Command", command.ToString() }, { "Type", "device" } };
                JObject data = new JObject {{ "sid", sid } };
                JObject data = new JObject { { "sid", sid } };
                sendJob.Add("objects", data);
                List<ControlData> controlData = new List<ControlData>();
                controlData.Add(new ControlData()
                {
                    name = "on_off",
                    data_type = "Bool",
                    value = on_off
                });
            }
            else if (command == CommandType_A.read)
            {