diff options
Diffstat (limited to 'mfi-mqtt/reporting.h')
-rw-r--r-- | mfi-mqtt/reporting.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mfi-mqtt/reporting.h b/mfi-mqtt/reporting.h new file mode 100644 index 0000000..1ed0448 --- /dev/null +++ b/mfi-mqtt/reporting.h | |||
@@ -0,0 +1,14 @@ | |||
1 | typedef struct power_statistics { | ||
2 | int relay_num; | ||
3 | char *engaged; | ||
4 | float active_power; | ||
5 | float energy_sum; | ||
6 | float current_rms; | ||
7 | float voltage_rms; | ||
8 | float power_factor; | ||
9 | } power_statistics; | ||
10 | |||
11 | int get_output_count(); | ||
12 | void get_primary_ip_address(char[15]); | ||
13 | int get_stats_all_outputs(power_statistics ***); | ||
14 | char * format_report_all_outputs(power_statistics **, int); | ||