예제 #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;
        }
예제 #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);
        }