yhur / arduplot

MIT License
41 stars 7 forks source link

Wrong output with delay less than 1s #4

Closed semka95 closed 2 years ago

semka95 commented 2 years ago

If i set delay less than 1000 in loop, for example:

void loop() {
    readDHT22();
    Serial.printf("%.1f\t %.1f\n", temperature, humidity);
    delay(100);
}

plot displays this: 2021-12-13_19h45m57s_screenshot Is it how it supposed to work, or is it a bug?

yhur commented 2 years ago

Nope, it's not the way designed. On my Mac, it is working fine like this even with 10 ms.

스크린샷 2021-12-14 오전 3 10 04

I haven't tired it with this short interval on Windows, so I am not sure with the Windows python environment.

semka95 commented 2 years ago

That's interesting. I'm using linux, not windows. I will try to debug this. If I find out something I will let you know.

yhur commented 2 years ago

That will be great. Thanks

yhur commented 2 years ago

@semka95 I'm closing this for now. If you need, please re-open it. Thanks.