Domotique/WifiControlSensor/Teleinfo.h

22 lines
453 B
C++

#pragma once
#include "debug_sketch.h"
#ifdef CONFIG_ENABLE_TELEINFO
#include <LibTeleinfo.h>
int TeleinfoSetup();
//int TeleinfoProcess();
int TeleinfoProcess(std::vector<struct mqttInfo> &batchInfo);
#else
typedef struct _ValueList {
} ValueList;
int TeleinfoSetup() {
SKETCH_DEBUG_PRINTLN("Teleinfo is disabled at build time");
return -1;
};
//int TeleinfoProcess(){
int TeleinfoProcess(std::vector<struct mqttInfo> &){
return 0;
};
#endif