Skip to content

Commit

Permalink
set autoconfig to esp detector
Browse files Browse the repository at this point in the history
  • Loading branch information
Supersilvia authored and Supersilvia committed Feb 19, 2024
1 parent 92db600 commit 4f85775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deployable_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ bool shouldPerformAutoConfig(AsyncWebServerRequest *request) {
void performAutoConfig(AsyncWebServerRequest *request){
const char* endpoint = groundlight_endpoint;
const char* apiToken = API_TOKEN;
detector esp_det = get_detector_by_name(endpoint, "door", apiToken); // ESP32-CAM-87E1AC
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) {
Serial.println("Error: Detector not found. Try connect to the previous configured detector.");
Expand Down

0 comments on commit 4f85775

Please sign in to comment.