Add option to set up for wifi or AP on compile #53

Merged
W1CDN merged 9 commits from access-point into main 2023-10-01 11:29:23 -05:00
Showing only changes of commit 0478506e87 - Show all commits

View File

@ -188,7 +188,7 @@ const char index_html[] PROGMEM = R"rawliteral(
<br><hr> <br><hr>
<h2>Network Settings</h2> <h2>Network Settings</h2>
<form action="/get2" accept-charset=utf-8> <form onsubmit="return confirm('Are you sure you want to change the network and reboot?');" action="/get2" accept-charset=utf-8>
<p>Network Access: <p>Network Access:
<select name="inputNetwork" id="network"> <select name="inputNetwork" id="network">
<option value="0">Access Point</option> <option value="0">Access Point</option>
@ -604,7 +604,7 @@ void setup() {
Serial.println(yourInputPassword); Serial.println(yourInputPassword);
} }
// Shouldn't need to do this if using this form. // Shouldn't need to do this if using this form.
//request->redirect("/"); request->redirect("/");
resetFunc(); // reset the Arduino via software function resetFunc(); // reset the Arduino via software function
}); });