Пример #1
0
 public IActionResult StopAll()
 {
     foreach (var controller in GreeBridge.GetControllers())
     {
         controller.SetDeviceParameter(DeviceParameterKeys.Power, 0);
     }
     return(Ok());
 }
Пример #2
0
        public string GetConditionersCount()
        {
            //await Clients.All.SendAsync("ReceiveMessage", message);

            return(GreeBridge.GetControllers().Count.ToString());
        }
Пример #3
0
 public IActionResult GetConditionersCount()
 {
     return(Ok(GreeBridge.GetControllers().Count.ToString()));
 }