git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only use POST for login, and only if the GET string is empty
[matches/MCTX3420.git]
/
server
/
sensor.h
diff --git
a/server/sensor.h
b/server/sensor.h
index
0188361
..
3de48e0
100644
(file)
--- a/
server/sensor.h
+++ b/
server/sensor.h
@@
-61,6
+61,9
@@
typedef struct
int averages;
/** Current data **/
DataPoint current_data;
int averages;
/** Current data **/
DataPoint current_data;
+
+ /** Summed data **/
+ DataPoint averaged_data;
/** Number of points read so far before applying average **/
int num_read;
/** Number of points read so far before applying average **/
int num_read;
@@
-82,6
+85,8
@@
extern Sensor * Sensor_Identify(const char * str); // Identify a Sensor from a s
extern void Sensor_Handler(FCGIContext *context, char * params); // Handle a FCGI request for Sensor data
extern void Sensor_Handler(FCGIContext *context, char * params); // Handle a FCGI request for Sensor data
+extern DataPoint Sensor_LastData(int id);
+
extern const char * Sensor_GetName(int id);
extern const char * Sensor_GetName(int id);
UCC
git Repository :: git.ucc.asn.au