MDNS
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
#define NUKI_HUB_VERSION "9.09"
|
#define NUKI_HUB_VERSION "9.09"
|
||||||
#define NUKI_HUB_VERSION_INT (uint32_t)909
|
#define NUKI_HUB_VERSION_INT (uint32_t)909
|
||||||
#define NUKI_HUB_BUILD "unknownbuildnr"
|
#define NUKI_HUB_BUILD "unknownbuildnr"
|
||||||
#define NUKI_HUB_DATE "2025-02-18"
|
#define NUKI_HUB_DATE "2025-02-19"
|
||||||
|
|
||||||
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
||||||
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
||||||
|
|||||||
14
src/main.cpp
14
src/main.cpp
@@ -14,6 +14,7 @@
|
|||||||
#include "esp_core_dump.h"
|
#include "esp_core_dump.h"
|
||||||
#include "FS.h"
|
#include "FS.h"
|
||||||
#include "SPIFFS.h"
|
#include "SPIFFS.h"
|
||||||
|
#include <ESPmDNS.h>
|
||||||
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
|
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
|
||||||
#include "esp_psram.h"
|
#include "esp_psram.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -791,6 +792,10 @@ void setup()
|
|||||||
return response->redirect("/");
|
return response->redirect("/");
|
||||||
});
|
});
|
||||||
psychicSSLServer->begin();
|
psychicSSLServer->begin();
|
||||||
|
if (MDNS.begin(preferences->getString(preference_hostname, "nukihub").c_str())) {
|
||||||
|
MDNS.addService("http", "tcp", 443);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -807,6 +812,9 @@ void setup()
|
|||||||
return response->redirect("/");
|
return response->redirect("/");
|
||||||
});
|
});
|
||||||
psychicServer->begin();
|
psychicServer->begin();
|
||||||
|
if (MDNS.begin(preferences->getString(preference_hostname, "nukihub").c_str())) {
|
||||||
|
MDNS.addService("http", "tcp", 80);
|
||||||
|
}
|
||||||
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
|
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -969,6 +977,9 @@ void setup()
|
|||||||
return response->redirect("/");
|
return response->redirect("/");
|
||||||
});
|
});
|
||||||
psychicSSLServer->begin();
|
psychicSSLServer->begin();
|
||||||
|
if (MDNS.begin(preferences->getString(preference_hostname, "nukihub").c_str())) {
|
||||||
|
MDNS.addService("http", "tcp", 443);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -985,6 +996,9 @@ void setup()
|
|||||||
return response->redirect("/");
|
return response->redirect("/");
|
||||||
});
|
});
|
||||||
psychicServer->begin();
|
psychicServer->begin();
|
||||||
|
if (MDNS.begin(preferences->getString(preference_hostname, "nukihub").c_str())) {
|
||||||
|
MDNS.addService("http", "tcp", 80);
|
||||||
|
}
|
||||||
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
|
#ifdef CONFIG_SOC_SPIRAM_SUPPORTED
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user