This commit is contained in:
iranl
2024-02-08 20:57:21 +01:00
parent f9a64b6e52
commit 2c71fedcfa
2 changed files with 5 additions and 3 deletions

View File

@@ -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;

View File

@@ -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("</table><br><br>");