mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-14 15:11:32 +10:00
oops
This commit is contained in:
+1
-1
@@ -801,7 +801,7 @@ String WiFiManager::getParamOut(){
|
||||
if(tok_n)pitem.replace("{n}", _params[i]->getID());
|
||||
if(tok_p)pitem.replace("{p}", "{t}");
|
||||
if(tok_t)pitem.replace("{t}", _params[i]->getPlaceholder());
|
||||
// snprintf(parLength, 5, "%d", _params[i]->getValueLength());
|
||||
snprintf(parLength, 5, "%d", _params[i]->getValueLength());
|
||||
if(tok_l)pitem.replace("{l}", parLength);
|
||||
if(tok_v)pitem.replace("{v}", _params[i]->getValue());
|
||||
if(tok_c)pitem.replace("{c}", _params[i]->getCustomHTML()); // meant for additional attributes, not html
|
||||
|
||||
@@ -41,7 +41,7 @@ void setup() {
|
||||
//if it does not connect it starts an access point with the specified name
|
||||
//here "AutoConnectAP"
|
||||
//and goes into a blocking loop awaiting configuration
|
||||
if(!wifiManager.autoConnect("AutoConnectAP")) {
|
||||
if(!wifiManager.autoConnect("AutoConnectAP","12345678")) {
|
||||
Serial.println("failed to connect and hit timeout");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user