File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ void NetManagerTask::wifiStartAccessPoint()
99
99
100
100
String softAP_ssid;
101
101
102
- if (! ap_ssid) {
103
- // Create Unique SSID e.g "emonESP_XXXXXX "
102
+ if (ap_ssid. length () < 2 ) {
103
+ // Create Unique SSID e.g "OpenEVSE_XXXXXX "
104
104
softAP_ssid = String (_softAP_ssid) + " _" + ESPAL.getShortId ();
105
105
}
106
106
else {
107
- softAP_ssid = ap_pass ;
107
+ softAP_ssid = ap_ssid ;
108
108
}
109
109
110
110
// Use the existing channel if set
@@ -115,7 +115,7 @@ void NetManagerTask::wifiStartAccessPoint()
115
115
channel = (random (3 ) * 5 ) + 1 ;
116
116
}
117
117
DBUGVAR (channel);
118
- WiFi.softAP (softAP_ssid.c_str (), ap_pass?ap_pass.c_str ():_softAP_password, channel);
118
+ WiFi.softAP (softAP_ssid.c_str (), ap_pass. length ()>= 8 ?ap_pass.c_str ():_softAP_password, channel);
119
119
120
120
// Setup the DNS server redirecting all the domains to the apIP
121
121
_dnsServer.setErrorReplyCode (DNSReplyCode::NoError);
You can’t perform that action at this time.
0 commit comments