This commit is contained in:
iranl
2024-02-07 22:21:39 +01:00
parent 8c601ece4c
commit 01100d22a9
2 changed files with 2 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
Network* Network::_inst = nullptr;
unsigned long Network::_ignoreSubscriptionsTs = 0;
bool _versionPublished = false;
const char* headerKeys[] = {"location"};
RTC_NOINIT_ATTR char WiFi_fallbackDetect[14];
@@ -371,7 +372,7 @@ bool Network::update()
if (httpResponseCode==302) {
_latestVersion = https.header("location");
_latestVersion.replace(GITHUB_RELEASE_TAG_URL, "");
publishString(_maintenancePathPrefix, mqtt_topic_info_nuki_hub_latest, _latestVersion);
publishString(_maintenancePathPrefix, mqtt_topic_info_nuki_hub_latest, _latestVersion.c_str());
}
https.end();