Domotique/WifiControlSensor/Teleinfo.h

24 lines
574 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();
2023-03-27 21:01:20 +02:00
int TeleinfoRetrieve(float &iinst, float &papp, float &base);
int TeleinfoRetrieve(float &iinst, float &papp, float &base,
2022-09-24 22:43:15 +02:00
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;
};
2023-03-27 21:01:20 +02:00
int TeleinfoRetrieve(float &, float &, float &){
return 0;
}
int TeleinfoRetrieve(float &, float &, float &, std::vector<struct mqttInfo> &)
{
return 0;
2022-09-24 22:43:15 +02:00
}
2021-02-18 15:51:49 +01:00
#endif