From 01100d22a925e5e49d650fb8088c19be20599441 Mon Sep 17 00:00:00 2001 From: iranl Date: Wed, 7 Feb 2024 22:21:39 +0100 Subject: [PATCH] Fixes --- Network.cpp | 3 ++- Network.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Network.cpp b/Network.cpp index cd7e110..c122c0b 100644 --- a/Network.cpp +++ b/Network.cpp @@ -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(); diff --git a/Network.h b/Network.h index 7cda6a7..3a5012f 100644 --- a/Network.h +++ b/Network.h @@ -112,7 +112,6 @@ private: char _mqttConnectionStateTopic[211] = {0}; String _lockPath; - const char* headerKeys[] = {"location"}; String _latestVersion; HTTPClient https;