move credentials to separate file
This commit is contained in:
parent
c32067c445
commit
c5538211af
2 changed files with 13 additions and 13 deletions
12
include/credentials.h
Normal file
12
include/credentials.h
Normal 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__"
|
14
src/main.cpp
14
src/main.cpp
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue