mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 10:42:10 +10:00
fixes #707
This commit is contained in:
+5
-4
@@ -201,7 +201,7 @@ void WiFiManager::_end(){
|
|||||||
// AUTOCONNECT
|
// AUTOCONNECT
|
||||||
|
|
||||||
boolean WiFiManager::autoConnect() {
|
boolean WiFiManager::autoConnect() {
|
||||||
String ssid = _wifissidprefix + "_" + String(WIFI_getChipId());
|
String ssid = _wifissidprefix + "_" + String(WIFI_getChipId(),HEX);
|
||||||
return autoConnect(ssid.c_str(), NULL);
|
return autoConnect(ssid.c_str(), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -458,7 +458,7 @@ void WiFiManager::setupConfigPortal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean WiFiManager::startConfigPortal() {
|
boolean WiFiManager::startConfigPortal() {
|
||||||
String ssid = _wifissidprefix + "_" + String(WIFI_getChipId());
|
String ssid = _wifissidprefix + "_" + String(WIFI_getChipId(),HEX);
|
||||||
return startConfigPortal(ssid.c_str(), NULL);
|
return startConfigPortal(ssid.c_str(), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -476,7 +476,7 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo
|
|||||||
_apName = apName; // @todo check valid apname ?
|
_apName = apName; // @todo check valid apname ?
|
||||||
_apPassword = apPassword;
|
_apPassword = apPassword;
|
||||||
|
|
||||||
if(_apName == "") _apName = _wifissidprefix + "_" + String(WIFI_getChipId());
|
if(_apName == "") _apName = _wifissidprefix + "_" + String(WIFI_getChipId(),HEX);
|
||||||
if(!validApPassword()) return false;
|
if(!validApPassword()) return false;
|
||||||
|
|
||||||
// HANDLE issues with STA connections, shutdown sta if not connected, or else this will hang channel scanning and softap will not respond
|
// HANDLE issues with STA connections, shutdown sta if not connected, or else this will hang channel scanning and softap will not respond
|
||||||
@@ -1425,7 +1425,7 @@ String WiFiManager::getInfoData(String id){
|
|||||||
}
|
}
|
||||||
else if(id==F("chipid")){
|
else if(id==F("chipid")){
|
||||||
p = FPSTR(HTTP_INFO_chipid);
|
p = FPSTR(HTTP_INFO_chipid);
|
||||||
p.replace(FPSTR(T_1),(String)WIFI_getChipId());
|
p.replace(FPSTR(T_1),String(WIFI_getChipId(),HEX));
|
||||||
}
|
}
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
else if(id==F("chiprev")){
|
else if(id==F("chiprev")){
|
||||||
@@ -1817,6 +1817,7 @@ bool WiFiManager::erase(bool opt){
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* [resetSettings description]
|
* [resetSettings description]
|
||||||
|
* ERASES STA CREDENTIALS
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
void WiFiManager::resetSettings() {
|
void WiFiManager::resetSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user