#ifndef in *.h + #pragma once (#1639)

This commit is contained in:
Nicolas Liaudat
2022-12-20 06:46:13 +01:00
committed by GitHub
parent c4cd43b3d6
commit fc5fbd648e
37 changed files with 188 additions and 288 deletions

View File

@@ -1,5 +1,10 @@
#ifdef ENABLE_MQTT
#pragma once
#ifndef SERVERMQTT_H
#define SERVERMQTT_H
#include "ClassFlowDefineTypes.h"
void SetHomeassistantDiscoveryEnabled(bool enabled);
@@ -16,4 +21,6 @@ void publishSystemData();
std::string getTimeUnit(void);
void GotConnected(std::string maintopic, int SetRetainFlag);
#endif //SERVERMQTT_H
#endif //ENABLE_MQTT