change readdelay default
This commit is contained in:
parent
4de344ca57
commit
247ccf2003
|
@ -25,7 +25,7 @@
|
||||||
struct sensordata
|
struct sensordata
|
||||||
{
|
{
|
||||||
unsigned long lastreadtime=0;
|
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 minchange=0; //send new value if difference to last sent value is greater than this
|
||||||
float lastsentvalue=0;
|
float lastsentvalue=0;
|
||||||
unsigned long lastsent=0;
|
unsigned long lastsent=0;
|
||||||
|
@ -105,7 +105,6 @@ void setup() {
|
||||||
Serial.println(F("Error initialising BH1750"));
|
Serial.println(F("Error initialising BH1750"));
|
||||||
}
|
}
|
||||||
dataBH1750.minchange=10.0;
|
dataBH1750.minchange=10.0;
|
||||||
dataBH1750.readdelay=1000*10;
|
|
||||||
dataBH1750.senddelaymax=1000*60*2;
|
dataBH1750.senddelaymax=1000*60*2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue