2021-10-31 13:07:09 +00:00
|
|
|
|
2021-11-02 17:51:55 +00:00
|
|
|
#ifndef SENSORDATA_H
|
|
|
|
#define SENSORDATA_H
|
|
|
|
|
2021-10-31 13:07:09 +00:00
|
|
|
struct sensordata
|
|
|
|
{
|
|
|
|
unsigned long lastreadtime=0;
|
|
|
|
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;
|
|
|
|
float value=0;
|
|
|
|
unsigned long lastsent=0;
|
|
|
|
unsigned long senddelaymax=1000*60*5; //maximum time until current value is send
|
2021-11-02 17:51:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|