Beispiel #1
0
        public static async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest req,
            ILogger log)
        {
            var state  = HiveHeating.GetHeatingState();
            var result = state.ToString();

            log.LogInformation(result);
            return(new OkObjectResult(result));
        }
Beispiel #2
0
        public static ThermostatState GetHeatingState()
        {
            var instance = new HiveHeating();

            return(instance.GetThermostatState());
        }