2021-02-18 15:51:49 +01:00
|
|
|
#pragma once
|
|
|
|
#include "debug_sketch.h"
|
|
|
|
|
|
|
|
#ifdef CONFIG_ENABLE_TELEINFO
|
|
|
|
#include <LibTeleinfo.h>
|
|
|
|
int TeleinfoSetup();
|
2021-02-18 23:50:54 +01:00
|
|
|
int TeleinfoProcess(std::vector<struct mqttInfo> &batchInfo);
|
2022-09-10 21:53:06 +02:00
|
|
|
int TeleinfoProcess(float &iinst, float &papp, float &base);
|
2021-02-18 15:51:49 +01:00
|
|
|
#else
|
|
|
|
int TeleinfoSetup() {
|
|
|
|
SKETCH_DEBUG_PRINTLN("Teleinfo is disabled at build time");
|
|
|
|
return -1;
|
|
|
|
};
|
|
|
|
|
2022-09-10 21:53:06 +02:00
|
|
|
inline int TeleinfoProcess(std::vector<struct mqttInfo> &){
|
|
|
|
return 0;
|
|
|
|
};
|
2022-09-10 22:48:37 +02:00
|
|
|
int TeleinfoProcess(float &, float &, float &){
|
2021-02-18 15:51:49 +01:00
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
#endif
|