Add option to set up for wifi or AP on compile #53
@@ -188,7 +188,7 @@ const char index_html[] PROGMEM = R"rawliteral(
 | 
			
		||||
 | 
			
		||||
  <br><hr>
 | 
			
		||||
  <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: 
 | 
			
		||||
    <select name="inputNetwork" id="network">
 | 
			
		||||
      <option value="0">Access Point</option>
 | 
			
		||||
@@ -604,7 +604,7 @@ void setup() {
 | 
			
		||||
      Serial.println(yourInputPassword);
 | 
			
		||||
    }
 | 
			
		||||
    // Shouldn't need to do this if using this form.
 | 
			
		||||
    //request->redirect("/");
 | 
			
		||||
    request->redirect("/");
 | 
			
		||||
 | 
			
		||||
    resetFunc();  // reset the Arduino via software function
 | 
			
		||||
  });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user