Exemple #1
0
        public string SetLabel(string newLabel)
        {
            LifxSetLabelCommand command = new LifxSetLabelCommand(newLabel);

            LifxCommunicator.Instance.SendCommand(command, this);

            return(((LifxLabelMessage)command.ReturnMessage).BulbLabel);
        }
Exemple #2
0
        public async Task <LifxLabelMessage> SetLabelCommand(string newLabel)
        {
            LifxSetLabelCommand command = new LifxSetLabelCommand(newLabel);

            return(await LifxCommunicator.Instance.SendCommand(command, this) as LifxLabelMessage);
        }