summaryrefslogtreecommitdiff
path: root/platformio/relayctl/src/mqtt.h
diff options
context:
space:
mode:
Diffstat (limited to 'platformio/relayctl/src/mqtt.h')
-rw-r--r--platformio/relayctl/src/mqtt.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/platformio/relayctl/src/mqtt.h b/platformio/relayctl/src/mqtt.h
index 2afb2e0..74d637a 100644
--- a/platformio/relayctl/src/mqtt.h
+++ b/platformio/relayctl/src/mqtt.h
@@ -1,9 +1,13 @@
+#ifndef HOMEKIT_RELAYCTL_MQTT_H
+#define HOMEKIT_RELAYCTL_MQTT_H
+
#include <ESP8266WiFi.h>
#include <espMqttClient.h>
#include <Ticker.h>
-#include "stopwatch.h"
-namespace homekit { namespace mqtt {
+#include <homekit/stopwatch.h>
+
+namespace homekit::mqtt {
enum class OTAResult: uint8_t {
OK = 0,
@@ -98,4 +102,6 @@ struct OTAResponse {
uint8_t error_code;
} __attribute__((packed));
-} } \ No newline at end of file
+}
+
+#endif //HOMEKIT_RELAYCTL_MQTT_H \ No newline at end of file