mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 21:48:44 +05:00
refactor: memory optimization for esp8266
This commit is contained in:
1 parent
6a9bd9673a
commit
fda18cdb13
17 files changed
+1044
-788
No files matched your search
@@ -10,7 +10,8 @@ public:
|
||||
free(this->buffer);
|
||||
}
|
||||
|
||||
void send(int code, const char* contentType, const JsonVariantConst content, bool pretty = false) {
|
||||
template <class T>
|
||||
void send(int code, T contentType, const JsonVariantConst content, bool pretty = false) {
|
||||
#ifdef ARDUINO_ARCH_ESP8266
|
||||
if (!this->webServer->chunkedResponseModeStart(code, contentType)) {
|
||||
this->webServer->send(505, F("text/html"), F("HTTP1.1 required"));
|
||||
|
||||
Reference in new issue
Block a user