From daefc43fffc676331621d0420bc13257644cce54 Mon Sep 17 00:00:00 2001 From: xad1 Date: Fri, 10 Mar 2023 15:39:32 +0000 Subject: [PATCH] put the constants in a header file --- include/server.hpp | 12 ++++++++++++ src/main.cpp | 7 +------ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 include/server.hpp diff --git a/include/server.hpp b/include/server.hpp new file mode 100644 index 0000000..3944e07 --- /dev/null +++ b/include/server.hpp @@ -0,0 +1,12 @@ +#include + +/** + * Enter WiFi network and Proxmox information +*/ + +const char* WIFI_SSID = ""; +const char* WIFI_PASS = ""; +const String PROXMOX_ADDRESS = ""; +const String PROXMOX_TOKEN_USER = ""; +const String PROXMOX_TOKEN_NAME = ""; +const String PROXMOX_TOKEN_SECRET = ""; \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 721af03..609f2dc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,13 +3,8 @@ #include #include #include +#include -const char* WIFI_SSID = ""; -const char* WIFI_PASS = ""; -const String PROXMOX_ADDRESS = ""; -const String PROXMOX_TOKEN_USER = ""; -const String PROXMOX_TOKEN_NAME = ""; -const String PROXMOX_TOKEN_SECRET = ""; int selectedItem = 0;