chunked response working a charm

This commit is contained in:
2021-06-30 21:36:45 +03:00
parent d2eee55953
commit a0b01f4839
3 changed files with 62 additions and 58 deletions

View File

@ -11,7 +11,7 @@ void collector_loop();
// Set delay between sensor readings.
#define DELAY 3000 //3s , longer and the web requests time-out
#define MINUTE 120 // 6 min average
#define WEEK 1000 // 4 days worth of 6min sample
#define WEEK 1500 // 7 days worth of 6min sample
#define MONTH 750 // 1 month of hourly sample
#define PER_HOUR 10
@ -28,9 +28,6 @@ protected:
void add_month(int from ) ;
String one_week( float[] );
String one_month( float[] );
public:
float week_in[WEEK];
float week_out[WEEK];
@ -41,8 +38,8 @@ public:
void add_week(float in , float out) ;
void add(float in , float out) ;
String week_data();
String month_data();
String week_data( int at);
String month_data(int at);
};