This commit is contained in:
technyon
2023-01-25 22:53:11 +01:00
parent a8527027cd
commit 10a916d57d
4 changed files with 7 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
#pragma once
#define MQTT_QOS_LEVEL 0
#define MQTT_CLEAN_SESSIONS true
#define MQTT_QOS_LEVEL 1
#define MQTT_CLEAN_SESSIONS false

View File

@@ -49,12 +49,6 @@ void WebCfgServer::initialize()
}
sendCss();
});
_server.on("/inter.css", [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
return _server.requestAuthentication();
}
sendFontsInterMinCss();
});
_server.on("/favicon.ico", HTTP_GET, [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
return _server.requestAuthentication();
@@ -735,9 +729,10 @@ void WebCfgServer::buildHtmlHeader(String &response)
{
response.concat("<HTML><HEAD>");
response.concat("<meta name='viewport' content='width=device-width, initial-scale=1'>");
response.concat("<style>");
response.concat(stylecss);
response.concat("</style>");
// response.concat("<style>");
// response.concat(stylecss);
// response.concat("</style>");
response.concat("<link rel='stylesheet' href='/style.css'>");
response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>");
}
@@ -941,12 +936,6 @@ void WebCfgServer::sendCss()
_server.send(200, "text/plain", stylecss, sizeof(stylecss));
}
void WebCfgServer::sendFontsInterMinCss()
{
// escaped by https://www.cescaper.com/
// _server.send(200, "text/plain", intercss, sizeof(intercss));
}
void WebCfgServer::sendFavicon()
{
_server.send(200, "image/png", (const char*)favicon_32x32, sizeof(favicon_32x32));

View File

@@ -38,7 +38,6 @@ private:
void buildConfirmHtml(String& response, const String &message, uint32_t redirectDelay = 5);
void buildConfigureWifiHtml(String& response);
void sendCss();
void sendFontsInterMinCss();
void sendFavicon();
void processUnpair(bool opener);

File diff suppressed because one or more lines are too long