public string SetLabel(string newLabel) { LifxSetLabelCommand command = new LifxSetLabelCommand(newLabel); LifxCommunicator.Instance.SendCommand(command, this); return(((LifxLabelMessage)command.ReturnMessage).BulbLabel); }
public async Task <LifxLabelMessage> SetLabelCommand(string newLabel) { LifxSetLabelCommand command = new LifxSetLabelCommand(newLabel); return(await LifxCommunicator.Instance.SendCommand(command, this) as LifxLabelMessage); }