wxr
2020-06-16 f6fd8acd7c53c44187e70b4709443318a628f4b5
HDL_ON/Entity/Function/AC.cs
@@ -309,7 +309,6 @@
            {
                try
                {
                    return trait_swting.value;
                }
                catch (Exception ex)
@@ -412,8 +411,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)
            {