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.
13 lines
348 B
13 lines
348 B
//jenom simulace není potřeba žádná knihovna zatím
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
Serial.println("Start ESP32 DHT11 simulator");
|
|
randomSeed(analogRead(0));
|
|
}
|
|
void loop() {
|
|
float sim_temp = random(150,300) / 10.0;
|
|
float sim_hum = random(400,700) / 10.0;
|
|
|
|
Serial.printf("T:%.1f,H:%.1f\n", sim_temp, sim_hum);
|
|
delay(5000);
|
|
}
|
|
|