change readdelay default

This commit is contained in:
interfisch 2020-10-03 12:21:18 +02:00
parent 4de344ca57
commit 247ccf2003
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,7 @@
struct sensordata
{
unsigned long lastreadtime=0;
unsigned long readdelay=1000*30; //polling delay
unsigned long readdelay=1000*10; //polling delay
float minchange=0; //send new value if difference to last sent value is greater than this
float lastsentvalue=0;
unsigned long lastsent=0;
@ -105,7 +105,6 @@ void setup() {
Serial.println(F("Error initialising BH1750"));
}
dataBH1750.minchange=10.0;
dataBH1750.readdelay=1000*10;
dataBH1750.senddelaymax=1000*60*2;
#endif