You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							14 lines
						
					
					
						
							290 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							14 lines
						
					
					
						
							290 B
						
					
					
				| void getBME280Data() { | |
| 
 | |
|    float temp(NAN), hum(NAN), pres(NAN); | |
| 
 | |
|    BME280::TempUnit tempUnit(BME280::TempUnit_Celsius); | |
|    BME280::PresUnit presUnit(BME280::PresUnit_Pa); | |
| 
 | |
|    bme.read(pres, temp, hum, tempUnit, presUnit); | |
| 
 | |
|    temperature = temp; | |
|    humidity = hum; | |
|    pressure = pres; | |
| 
 | |
| }
 |