Domotique/WifiControlSensor/Teleinfo.h

22 lines
591 B
C
Raw Normal View History

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);
2022-09-24 22:43:15 +02:00
int TeleinfoProcess(float &iinst, float &papp, float &base,
std::vector<struct mqttInfo> &batchInfo);
2021-02-18 15:51:49 +01:00
#else
int TeleinfoSetup() {
SKETCH_DEBUG_PRINTLN("Teleinfo is disabled at build time");
return -1;
};
2022-09-24 22:43:15 +02:00
int TeleinfoProcess(float &, float &, float &,
std::vector<struct mqttInfo> &){
2022-09-10 21:53:06 +02:00
return 0;
2022-09-24 22:43:15 +02:00
}
2021-02-18 15:51:49 +01:00
#endif