From c5538211afd581a1624814812656dc85e0148923 Mon Sep 17 00:00:00 2001 From: Philipp Kramer Date: Thu, 19 Dec 2024 10:31:38 +0100 Subject: [PATCH] move credentials to separate file --- include/credentials.h | 12 ++++++++++++ src/main.cpp | 14 +------------- 2 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 include/credentials.h diff --git a/include/credentials.h b/include/credentials.h new file mode 100644 index 0000000..f0e432e --- /dev/null +++ b/include/credentials.h @@ -0,0 +1,12 @@ +/************************* WiFi Access Point *********************************/ + +#define WLAN_SSID "TheaterDo-ATD" +#define WLAN_PASS "PASSWORD" + +/************************* MQTT Setup *********************************/ + +#define MQTT_SERVER "nodered.atd.theaterdo.net" +#define MQTT_SERVERPORT 1883 // use 8883 for SSL + +#define MQTT_USERNAME "__USERNAME__" +#define MQTT_PASSWORD "__PASSWORD__" diff --git a/src/main.cpp b/src/main.cpp index 71626c7..d23d06e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,19 +7,7 @@ #include "Adafruit_MQTT_Client.h" -/************************* WiFi Access Point *********************************/ - -#define WLAN_SSID "TheaterDo-ATD" -#define WLAN_PASS "PASSWORD" - -/************************* MQTT Setup *********************************/ - -#define MQTT_SERVER "nodered.atd.theaterdo.net" -#define MQTT_SERVERPORT 1883 // use 8883 for SSL - -#define MQTT_USERNAME "__USERNAME__" -#define MQTT_PASSWORD "__PASSWORD__" - +#include "credentials.h" static bool eth_connected = false;