Skip to content

Commit

Permalink
Merge pull request #201 from sukhpalhub/wifi-feature
Browse files Browse the repository at this point in the history
Issue #89 Added mac address and local ip
  • Loading branch information
sqfmi authored Dec 30, 2022
2 parents ef0534e + 3a7eff4 commit 83aada6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Watchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,8 @@ void Watchy::setupWifi() {
} else {
display.println("Connected to");
display.println(WiFi.SSID());
display.println("Local IP:");
display.println(WiFi.localIP());
}
display.display(false); // full refresh
// turn off radios
Expand All @@ -828,6 +830,8 @@ void Watchy::_configModeCallback(WiFiManager *myWiFiManager) {
display.println(WIFI_AP_SSID);
display.print("IP: ");
display.println(WiFi.softAPIP());
display.println("MAC address:");
display.println(WiFi.softAPmacAddress().c_str());
display.display(false); // full refresh
}

Expand Down

0 comments on commit 83aada6

Please sign in to comment.