Пример #1
0
        public async Task SetStateLAN(string state)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, channelName, state);

            await ZeroConfUpdateDevice(data);
        }
Пример #2
0
        public void SetClose(int percent)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, "setClose", percent);

            UpdateDevice(data);
        }
Пример #3
0
        public void SetState(string state)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, channelName, state);

            UpdateDevice(data);
        }
Пример #4
0
        public void SetChannelsLAN(OutletState[] states)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, channelName, states);

            ZeroConfUpdateDevice(data);
        }
Пример #5
0
        public void TransmitChannel(int channel)
        {
            dynamic data = new ExpandoObject();

            ExpandoHelpers.AddProperty(data, $"rfCh{channel}", 0);
            data.cmd = "transmit";

            UpdateDevice(data);
        }