コード例 #1
0
        public async Task SetPower(bool power)
        {
            await Connect();

            await _device.SetPower(power, SmoothMs);

            PowerToggled?.Invoke();
        }
コード例 #2
0
        public async Task SetSunLight()
        {
            await Connect();

            await _device.SetPower(true, SmoothMs, PowerOnMode.Ct);

            PowerToggled?.Invoke();
        }
コード例 #3
0
        public async Task SetName(String name)
        {
            await Connect();

            await _device.SetName(name);

            PowerToggled?.Invoke();
        }