diff --git a/.gitignore b/.gitignore index 2ed8f67..0559e82 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,4 @@ src/credentials.h -config/ - credentials/ \ No newline at end of file diff --git a/credentials/api_keys.h b/credentials/api_keys.h deleted file mode 100644 index 99214e3..0000000 --- a/credentials/api_keys.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef CONFIG_H -#define CONFIG_H - -#define API_TOKEN "api_2apcwsQuXcq8ySCMelpMxdMxmP2_QL2ht1ddZRFaWrfa3QsCHMHtWgeJ5SF9n5"; - -#endif \ No newline at end of file diff --git a/src/deployable_example.cpp b/src/deployable_example.cpp index 52dce96..2a0aa4a 100644 --- a/src/deployable_example.cpp +++ b/src/deployable_example.cpp @@ -36,7 +36,7 @@ #include "integrations.h" #include "stacklight.h" -#include "../credentials/api_keys.h" //testing only +// #include "../credentials/api_keys.h" //testing only #ifdef PRELOADED_CREDENTIALS #include "credentials.h" @@ -390,7 +390,7 @@ bool shouldPerformAutoConfig(AsyncWebServerRequest *request) { //perform autoconfig: void performAutoConfig(AsyncWebServerRequest *request){ const char* endpoint = groundlight_endpoint; - const char* apiToken = API_TOKEN; + const char* apiToken = groundlight_API_key; detector esp_det = get_detector_by_name(endpoint, "ESP32-CAM-87E1AC", apiToken); // ESP32-CAM-87E1AC //error handling detector name doesn't exist if (strcmp(esp_det.id, "NONE") == 0) {