Skip to content

Commit

Permalink
hide credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Supersilvia authored and Supersilvia committed Feb 20, 2024
1 parent 2a0a597 commit 0ac74ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@

src/credentials.h

config/

credentials/
6 changes: 0 additions & 6 deletions credentials/api_keys.h

This file was deleted.

4 changes: 2 additions & 2 deletions src/deployable_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0ac74ac

Please sign in to comment.