Exemplo n.º 1
0
        public async Task<Humiture> GetHumitureAsync(int maxRetries = DEFAULT_MAX_RETRIES)
        {
            var reading = await dht11.GetReadingAsync(DEFAULT_MAX_RETRIES);
            var returnValue = new Humiture(reading);

            Debug.WriteLine("Temperature: " + returnValue.Temperature);
            Debug.WriteLine("Humidity: " + returnValue.Humidity);

            return returnValue;
        }
Exemplo n.º 2
0
        public async Task <Humiture> GetHumitureAsync(int maxRetries = DEFAULT_MAX_RETRIES)
        {
            var reading = await dht11.GetReadingAsync(DEFAULT_MAX_RETRIES);

            var returnValue = new Humiture(reading);

            Debug.WriteLine("Temperature: " + returnValue.Temperature);
            Debug.WriteLine("Humidity: " + returnValue.Humidity);

            return(returnValue);
        }