Skip to content

Commit

Permalink
added program version info to info page
Browse files Browse the repository at this point in the history
  • Loading branch information
merlokk committed Apr 11, 2017
1 parent 513b645 commit 0e683b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,11 @@ void WiFiManager::handleInfo() {
page += F("<dt>Station MAC</dt><dd>");
page += WiFi.macAddress();
page += F("</dd>");
if (mainProgramVersion){
page += F("<dt>Program version</dt><dd>");
page += String(mainProgramVersion);
page += F("</dd>");
}
page += F("<dt>WifiManager version</dt><dd>");
page += WIFI_MANAGER_VERSION;
page += F("</dd>");
Expand Down
2 changes: 2 additions & 0 deletions WiFiManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ class WiFiManager
void setCustomHeadElement(const char* element);
//if this is true, remove duplicated Access Points - defaut true
void setRemoveDuplicateAPs(boolean removeDuplicates);

char * mainProgramVersion = NULL;

private:
std::unique_ptr<DNSServer> dnsServer;
Expand Down

0 comments on commit 0e683b2

Please sign in to comment.