コード例 #1
0
        public void SetColor(TrustColorRgb color)
        {
            var value   = new TrustXyValue(color.ToXyz().ToYxy());
            var result  = value.ToValue();
            var command = TrustCommand.SimpleCommand(Home.Mac, Home.AesKey, Convert.ToInt32(Id), 5, result);

            TrustHttp.SendCommand(Home.Mac, Hub.Email, Hub.Password, command);
        }
コード例 #2
0
        public void TurnOff()
        {
            var command = TrustCommand.SimpleCommand(Home.Mac, Home.AesKey, Convert.ToInt32(Id), 3, 0);

            TrustHttp.SendCommand(Home.Mac, Hub.Email, Hub.Password, command);
        }