Skip to content

Commit cb0b504

Browse files
committed
update doc
1 parent 988f986 commit cb0b504

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ espConnect.getConfig().ipConfig.dns.fromString("192.168.125.1");
122122
espConnect.listen([](__unused Mycila::ESPConnect::State previous, __unused Mycila::ESPConnect::State state) {
123123
switch (state) {
124124
case Mycila::ESPConnect::State::PORTAL_COMPLETE:
125-
bool apMode = espConnect.hasConfiguredAPMode();
125+
bool apMode = espConnect.getConfig().apMode;
126126
std::string wifiSSID = espConnect.getConfig().wifiSSID;
127127
std::string wifiPassword = espConnect.getConfig().wifiPassword;
128128
if (apMode) {

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ espConnect.getConfig().ipConfig.dns.fromString("192.168.125.1");
122122
espConnect.listen([](__unused Mycila::ESPConnect::State previous, __unused Mycila::ESPConnect::State state) {
123123
switch (state) {
124124
case Mycila::ESPConnect::State::PORTAL_COMPLETE:
125-
bool apMode = espConnect.hasConfiguredAPMode();
125+
bool apMode = espConnect.getConfig().apMode;
126126
std::string wifiSSID = espConnect.getConfig().wifiSSID;
127127
std::string wifiPassword = espConnect.getConfig().wifiPassword;
128128
if (apMode) {

0 commit comments

Comments
 (0)