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; }
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); }