move credentials to separate file

This commit is contained in:
Philipp Kramer 2024-12-19 10:31:38 +01:00
parent c32067c445
commit c5538211af
2 changed files with 13 additions and 13 deletions

12
include/credentials.h Normal file
View file

@ -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__"

View file

@ -7,19 +7,7 @@
#include "Adafruit_MQTT_Client.h" #include "Adafruit_MQTT_Client.h"
/************************* WiFi Access Point *********************************/ #include "credentials.h"
#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__"
static bool eth_connected = false; static bool eth_connected = false;