File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ 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 {
@@ -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