diff --git a/Network.h b/Network.h
index 6b6dbc0..c2d6e00 100644
--- a/Network.h
+++ b/Network.h
@@ -63,8 +63,8 @@ public:
void publishPresenceDetection(char* csv);
int mqttConnectionState(); // 0 = not connected; 1 = connected; 2 = connected and mqtt processed
- const char* latestHubVersion;
- const char* latestHubVersionUrl;
+ const char* latestHubVersion();
+ const char* latestHubVersionUrl();
bool encryptionSupported();
const String networkDeviceName() const;
diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp
index 960709e..9e0bb28 100644
--- a/WebCfgServer.cpp
+++ b/WebCfgServer.cpp
@@ -613,8 +613,10 @@ void WebCfgServer::buildHtml(String& response)
}
printParameter(response, "Firmware", version.c_str(), "/info");
+ const char* _latestVersion = _network->latestHubVersion();
+
//if (_latestVersion.toFloat() > atof(NUKI_HUB_VERSION) || (_latestVersion.toFloat() == atof(NUKI_HUB_VERSION) && _latestVersion.c_str() != NUKI_HUB_VERSION)) {
- printParameter(response, "Latest Firmware", _network->latestHubVersion(), GITHUB_LATEST_RELEASE_URL);
+ printParameter(response, "Latest Firmware", _latestVersion, GITHUB_LATEST_RELEASE_URL);
//}
response.concat("
");