Skip to content

Commit

Permalink
added autoconfig checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Supersilvia authored and Supersilvia committed Jan 29, 2024
1 parent 59ab9e5 commit 3311159
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/deployable_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,11 @@ const char index_html[] PROGMEM = R"rawliteral(
<form action="/config">
WiFi SSID: <input type="text" name="ssid" value="%ssid%">
WiFi Password: <input type="password" name="pw" value="%password%">
API Key: <input type="password" name="api_key" value="%api_key%">
<!-- checkbox for autoconfig-->
API Key: <input type="text" name="api_key" value="%api_key%">
<label>
Autoconfig
<input type="checkbox" name="autoconfig">
</label>
Detector Id: <input type="text" name="det_id" value="%det_id%">
Query Delay (seconds): <input type="text" name="query_delay" value="%query_delay%">
Endpoint: <input type="text" name="endpoint" value="%endpoint%">
Expand Down Expand Up @@ -374,7 +371,6 @@ String processor(const String& var) {
preferences.end();
return out;
// return var;

}
#endif

Expand Down Expand Up @@ -649,6 +645,7 @@ void setup() {
#endif
}


void listener(void * parameter) {
char input3[1000];
int input3_index = 0;
Expand Down Expand Up @@ -1340,4 +1337,4 @@ bool is_motion_detected(camera_fb_t* frame, int alpha, int beta) {
}

return motion_detected;
}
}

0 comments on commit 3311159

Please sign in to comment.