Commit 2b6a986 1 parent 4948272 commit 2b6a986 Copy full SHA for 2b6a986
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -46,25 +46,23 @@ void APSettingsService::manageAP() {
46
46
}
47
47
48
48
void APSettingsService::startAP () {
49
- emsesp::EMSESP::logger ().info (F (" Starting software Access Point" ));
50
49
WiFi.softAPConfig (_state.localIP , _state.gatewayIP , _state.subnetMask );
51
50
WiFi.softAP (_state.ssid .c_str (), _state.password .c_str ());
52
51
if (!_dnsServer) {
53
52
IPAddress apIp = WiFi.softAPIP ();
54
- emsesp::EMSESP::logger ().info (F (" Starting captive portal on %s" ), apIp.toString ().c_str ());
53
+ emsesp::EMSESP::logger ().info (F (" Starting Access Point with captive portal on %s" ), apIp.toString ().c_str ());
55
54
_dnsServer = new DNSServer;
56
55
_dnsServer->start (DNS_PORT, " *" , apIp);
57
56
}
58
57
}
59
58
60
59
void APSettingsService::stopAP () {
61
60
if (_dnsServer) {
62
- emsesp::EMSESP::logger ().info (F (" Stopping captive portal " ));
61
+ emsesp::EMSESP::logger ().info (F (" Stopping Access Point " ));
63
62
_dnsServer->stop ();
64
63
delete _dnsServer;
65
64
_dnsServer = nullptr ;
66
65
}
67
- emsesp::EMSESP::logger ().info (F (" Stopping software Access Point" ));
68
66
WiFi.softAPdisconnect (true );
69
67
}
70
68
You can’t perform that action at this time.
0 commit comments